@@ -12,16 +12,15 @@ endif()
12
12
13
13
include (${MBED_CONFIG_PATH} /mbed_config.cmake )
14
14
include (${MBED_PATH} /tools/cmake/core.cmake )
15
- include (${MBED_PATH} /tools/cmake/profile.cmake )
16
15
17
16
add_library (mbed-core INTERFACE )
18
17
19
18
add_library (mbed-os INTERFACE )
20
19
21
20
target_link_libraries (mbed-os
22
- INTERFACE
23
- mbed-rtos
24
- mbed-core
21
+ INTERFACE
22
+ mbed-rtos
23
+ mbed-core
25
24
)
26
25
27
26
add_library (mbed-baremetal INTERFACE )
@@ -59,14 +58,18 @@ if(NOT ${MBED_PRINTF_LIB} IN_LIST MBED_PRINTF_LIB_TYPES)
59
58
)
60
59
endif ()
61
60
62
- mbed_set_cpu_core_options (mbed-core ${MBED_TOOLCHAIN} )
63
- mbed_set_toolchain_options (mbed-core )
64
- mbed_set_c_lib (mbed-core ${MBED_C_LIB} )
65
- mbed_set_printf_lib (mbed-core ${MBED_PRINTF_LIB} )
66
- mbed_set_profile_options (mbed-core ${MBED_TOOLCHAIN} )
61
+ mbed_set_cpu_core_definitions (mbed-core )
62
+ if (${MBED_TOOLCHAIN_FILE_USED} )
63
+ mbed_set_cpu_core_options (mbed-core ${MBED_TOOLCHAIN} )
64
+ mbed_set_toolchain_options (mbed-core )
65
+ mbed_set_profile_options (mbed-core ${MBED_TOOLCHAIN} )
66
+ mbed_set_c_lib (mbed-core ${MBED_C_LIB} )
67
+ mbed_set_printf_lib (mbed-core ${MBED_PRINTF_LIB} )
68
+ endif ()
69
+
67
70
68
71
set (MBED_TARGET_LABELS
69
- ${MBED_TARGET_LABELS} CACHE INTERNAL ""
72
+ ${MBED_TARGET_LABELS} CACHE INTERNAL ""
70
73
)
71
74
72
75
target_compile_definitions (mbed-core
0 commit comments