@@ -6,6 +6,8 @@ cmake_minimum_required(VERSION 3.15)
6
6
# User is responsible for one library target:
7
7
# freertos_config ,typcially an INTERFACE library
8
8
#
9
+ # DEPRECATED: FREERTOS_CONFIG_FILE_DIRECTORY - but still supported if no freertos_config defined for now.
10
+ # May be removed at some point in the future.
9
11
# User can choose which heap implementation to use (either the implementations
10
12
# included with FreeRTOS [1..5] or a custom implementation ) by providing the
11
13
# option FREERTOS_HEAP. If the option is not set, the cmake will default to
@@ -32,16 +34,6 @@ if(NOT TARGET freertos_config )
32
34
" target_compile_definitions(freertos_config\n "
33
35
" PUBLIC\n "
34
36
" projCOVERAGE_TEST=0)\n " )
35
- # Currently will add this in here.
36
- add_library (freertos_config INTERFACE )
37
- target_include_directories (freertos_config SYSTEM
38
- INTERFACE
39
- ${FREERTOS_CONFIG_FILE_DIRECTORY}
40
- )
41
- target_compile_definitions (freertos_config
42
- PUBLIC
43
- projCOVERAGE_TEST=0
44
- )
45
37
endif ()
46
38
endif ()
47
39
@@ -248,10 +240,12 @@ add_library(freertos_kernel STATIC
248
240
target_include_directories (freertos_kernel
249
241
PUBLIC
250
242
include
243
+ # Note: DEPRECATED but still supported, may be removed in a future release.
244
+ $<$<NOT :$<TARGET_EXISTS:freertos_config>>:${FREERTOS_CONFIG_FILE_DIRECTORY} >
251
245
)
252
246
253
247
target_link_libraries (freertos_kernel
254
248
PUBLIC
255
- freertos_config
249
+ $<$<TARGET_EXISTS: freertos_config>:freertos_config>
256
250
freertos_kernel_port
257
251
)
0 commit comments