File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,16 @@ include(${MBED_ROOT}/cmake/toolchain.cmake)
19
19
include (${MBED_ROOT} /cmake/profile.cmake )
20
20
include (${MBED_ROOT} /cmake/util.cmake )
21
21
22
- set_target_properties (mbed-os PROPERTIES MBED_TARGET_LABELS "${MBED_TARGET_LABELS} " )
23
- target_compile_definitions (mbed-os PUBLIC ${MBED_TARGET_DEFINITIONS} )
24
- target_compile_definitions (mbed-os PUBLIC ${MBED_CONFIG_DEFINITIONS} )
22
+ set_target_properties (mbed-os
23
+ PROPERTIES
24
+ MBED_TARGET_LABELS "${MBED_TARGET_LABELS} "
25
+ )
26
+
27
+ target_compile_definitions (mbed-os
28
+ PUBLIC
29
+ ${MBED_TARGET_DEFINITIONS}
30
+ ${MBED_CONFIG_DEFINITIONS}
31
+ )
25
32
26
33
# Specify a default build type
27
34
if (NOT CMAKE_BUILD_TYPE )
@@ -31,7 +38,10 @@ set(CMAKE_BUILD_TYPE "RelWithDebInfo"
31
38
endif ()
32
39
33
40
# Include mbed.h and config from generate folder
34
- target_include_directories (mbed-os PUBLIC . )
41
+ target_include_directories (mbed-os
42
+ PUBLIC
43
+ ${CMAKE_CURRENT_SOURCE_DIR}
44
+ )
35
45
36
46
# Default build
37
47
add_subdirectory (cmsis )
You can’t perform that action at this time.
0 commit comments