mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:00:44 +02:00
Merge pull request #4013 from Atlante45/cmake_fix
Fix for new version of cmake
This commit is contained in:
commit
adf778fba2
2 changed files with 8 additions and 5 deletions
|
@ -15,8 +15,8 @@ macro(INCLUDE_DEPENDENCY_INCLUDES)
|
||||||
|
|
||||||
# include those in our own target
|
# include those in our own target
|
||||||
include_directories(SYSTEM ${${TARGET_NAME}_DEPENDENCY_INCLUDES})
|
include_directories(SYSTEM ${${TARGET_NAME}_DEPENDENCY_INCLUDES})
|
||||||
endif ()
|
|
||||||
|
# set the property on this target so it can be retreived by targets linking to us
|
||||||
# set the property on this target so it can be retreived by targets linking to us
|
set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_INCLUDES "${${TARGET_NAME}_DEPENDENCY_INCLUDES}")
|
||||||
set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_INCLUDES "${${TARGET_NAME}_DEPENDENCY_INCLUDES}")
|
endif()
|
||||||
endmacro(INCLUDE_DEPENDENCY_INCLUDES)
|
endmacro(INCLUDE_DEPENDENCY_INCLUDES)
|
|
@ -27,7 +27,10 @@ macro(LINK_HIFI_LIBRARIES)
|
||||||
|
|
||||||
# ask the library what its include dependencies are and link them
|
# ask the library what its include dependencies are and link them
|
||||||
get_target_property(LINKED_TARGET_DEPENDENCY_INCLUDES ${HIFI_LIBRARY} DEPENDENCY_INCLUDES)
|
get_target_property(LINKED_TARGET_DEPENDENCY_INCLUDES ${HIFI_LIBRARY} DEPENDENCY_INCLUDES)
|
||||||
list(APPEND ${TARGET_NAME}_DEPENDENCY_INCLUDES ${LINKED_TARGET_DEPENDENCY_INCLUDES})
|
|
||||||
|
if(LINKED_TARGET_DEPENDENCY_INCLUDES)
|
||||||
|
list(APPEND ${TARGET_NAME}_DEPENDENCY_INCLUDES ${LINKED_TARGET_DEPENDENCY_INCLUDES})
|
||||||
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
endmacro(LINK_HIFI_LIBRARIES)
|
endmacro(LINK_HIFI_LIBRARIES)
|
Loading…
Reference in a new issue