@@ -28,18 +28,6 @@ cmake_policy(SET CMP0002 NEW)
2828# CMP0079: "target_link_libraries() allows use with targets in other directories"
2929cmake_policy (SET CMP0079 OLD)
3030
31- define_property (GLOBAL PROPERTY ZEPHYR_LIBS
32- BRIEF_DOCS "Global list of all Zephyr CMake libs that should be linked in"
33- FULL_DOCS "Global list of all Zephyr CMake libs that should be linked in.
34- zephyr_library() appends libs to this list." )
35- set_property (GLOBAL PROPERTY ZEPHYR_LIBS "" )
36-
37- define_property (GLOBAL PROPERTY ZEPHYR_INTERFACE_LIBS
38- BRIEF_DOCS "Global list of all Zephyr interface libs that should be linked in."
39- FULL_DOCS "Global list of all Zephyr interface libs that should be linked in.
40- zephyr_interface_library_named() appends libs to this list." )
41- set_property (GLOBAL PROPERTY ZEPHYR_INTERFACE_LIBS "" )
42-
4331set (APPLICATION_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "Application Source Directory" )
4432set (APPLICATION_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "Application Binary Directory" )
4533
@@ -539,7 +527,7 @@ add_subdirectory(${ZEPHYR_BASE} ${__build_dir})
539527# done after 'add_subdirectory(${ZEPHYR_BASE} ${__build_dir})'
540528# because interface libraries are defined while processing that
541529# subdirectory.
542- get_property (ZEPHYR_INTERFACE_LIBS_PROPERTY GLOBAL PROPERTY ZEPHYR_INTERFACE_LIBS)
530+ get_target_property (ZEPHYR_INTERFACE_LIBS_PROPERTY ${ZEPHYR_TARGET} ZEPHYR_INTERFACE_LIBS)
543531foreach (boilerplate_lib ${ZEPHYR_INTERFACE_LIBS_PROPERTY} )
544532 # Linking 'app' with 'boilerplate_lib' causes 'app' to inherit the INTERFACE
545533 # properties of 'boilerplate_lib'. The most common property is 'include
0 commit comments