Skip to content

Commit 309a434

Browse files
committed
CMake: Minor formatting of top level CMakeLists.txt source file
1 parent 4dcb529 commit 309a434

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

CMakeLists.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,16 @@ include(${MBED_ROOT}/cmake/toolchain.cmake)
1919
include(${MBED_ROOT}/cmake/profile.cmake)
2020
include(${MBED_ROOT}/cmake/util.cmake)
2121

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+
)
2532

2633
# Specify a default build type
2734
if(NOT CMAKE_BUILD_TYPE)
@@ -31,7 +38,10 @@ set(CMAKE_BUILD_TYPE "RelWithDebInfo"
3138
endif()
3239

3340
# 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+
)
3545

3646
# Default build
3747
add_subdirectory(cmsis)

0 commit comments

Comments
 (0)