diff options
author | fuzzard <fuzzard@kodi.tv> | 2023-08-12 14:52:02 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2023-09-01 14:17:00 +1000 |
commit | cecee18b552bcf9f7dbb2eec4ff237871d9d5468 (patch) | |
tree | 7f82dc7a708d368b2499ec5671707bd6bf657812 /cmake/scripts | |
parent | 8353970be0992421ed4b8efaacbe71cc5d09f2a0 (diff) |
[cmake] core_add_library enable using TARGETS to lib
In particular, this propogates dependency lib include dirs provided from a target
to be used as a system include path. This also propagates definitions provided by a target
in the same manner
[cmake] FindFlatbuffers change to INTERFACE IMPORTED target
[cmake] FindRapidJSON implement INTERFACE IMPORTED target
[cmake] FindFFMPEG move to targets for ffmpeg libs
[cmake] FindTagLib move to full TARGET usage
[cmake] Findlibandroidjni add IMPORTED TARGET
[cmake] FindNFS Change to using IMPORTED TARGET fully
[cmake] FindLibDVD* move to full TARGET use
[cmake] FindUUID change to target usage
[cmake] FindCrossGUID change to target usage
[cmake] FindFmt move to full TARGET usage
[cmake] FindSqlite3 move to full TARGET usage
[cmake] FindSpdlog move fully to modern TARGET usage
[cmake] FindTinyXML2 fixups
[cmake] FindPCRE convert to full TARGET usage
[cmake] fstrcmp TARGET usage
Diffstat (limited to 'cmake/scripts')
-rw-r--r-- | cmake/scripts/common/Macros.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake index b6863960b7..e98ef7564f 100644 --- a/cmake/scripts/common/Macros.cmake +++ b/cmake/scripts/common/Macros.cmake @@ -73,6 +73,10 @@ function(core_add_library name) set_target_properties(${name} PROPERTIES PREFIX "") set(core_DEPENDS ${name} ${core_DEPENDS} CACHE STRING "" FORCE) add_dependencies(${name} ${GLOBAL_TARGET_DEPS}) + + # Adds global target to library. This propagates dep lib info (eg include_dir locations) + target_link_libraries(${name} PRIVATE ${GLOBAL_TARGET_DEPS}) + set(CORE_LIBRARY ${name} PARENT_SCOPE) if(NOT MSVC) |