Commit 6d2f5d2d authored by Ghislain MARY's avatar Ghislain MARY

Fix finding of bctoolbox with CMake if no include directory property has been...

Fix finding of bctoolbox with CMake if no include directory property has been set on the bctoolbox target.
parent ed53ae3c
Pipeline #150 passed with stage
in 0 seconds
......@@ -62,6 +62,9 @@ foreach(comp ${BcToolbox_FIND_COMPONENTS})
else()
get_target_property(BCTOOLBOX_${uppercomp}_LIBRARIES ${targetname} LOCATION)
endif()
if(NOT BCTOOLBOX_${uppercomp}_LIBRARIES)
set(BCTOOLBOX_${uppercomp}_LIBRARIES)
endif()
get_target_property(BCTOOLBOX_${uppercomp}_LINK_LIBRARIES ${targetname} INTERFACE_LINK_LIBRARIES)
if(BCTOOLBOX_${uppercomp}_LINK_LIBRARIES)
list(APPEND BCTOOLBOX_${uppercomp}_LIBRARIES ${BCTOOLBOX_${uppercomp}_LINK_LIBRARIES})
......@@ -70,6 +73,9 @@ foreach(comp ${BcToolbox_FIND_COMPONENTS})
endif()
if(TARGET ${targetname})
get_target_property(BCTOOLBOX_${uppercomp}_INCLUDE_DIRS ${targetname} INTERFACE_INCLUDE_DIRECTORIES)
if(NOT BCTOOLBOX_${uppercomp}_INCLUDE_DIRS)
set(BCTOOLBOX_${uppercomp}_INCLUDE_DIRS)
endif()
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
list(INSERT BCTOOLBOX_${uppercomp}_INCLUDE_DIRS 0 "${EP_bctoolbox_INCLUDE_DIR}")
else()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment