summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-06-12 23:02:41 +0700
committerhathach <[email protected]>2021-06-12 23:02:41 +0700
commite4da606164c434f24d9aa157438170f6ef5fbe2f (patch)
tree75639e526899dcdbfed3e5d5aa3a3e4c505130bb /examples
parentfd7b18a4f6417c214b2b8880b3a640c39f587019 (diff)
set TOP to build with esp32sx
Diffstat (limited to 'examples')
-rw-r--r--examples/device/cdc_msc_freertos/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_freertos/CMakeLists.txt b/examples/device/cdc_msc_freertos/CMakeLists.txt
index 11f1c6135..639dde99a 100644
--- a/examples/device/cdc_msc_freertos/CMakeLists.txt
+++ b/examples/device/cdc_msc_freertos/CMakeLists.txt
@@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 3.5)
+# TOP is absolute path to root directory of TinyUSB git repo
+# needed for esp32sx build. TOOD could be removed later on
+set(TOP "../../..")
+get_filename_component(TOP "${TOP}" REALPATH)
+
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake)
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)