diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-02-21 17:07:37 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-02-22 18:07:52 +1000 |
commit | 5cc0644664b548e59bbb2981540274e8565451ab (patch) | |
tree | 710ca105fa88202a0a08e0c19ea3cbad0890ddc4 /CMakeLists.txt | |
parent | 0743c2370e7645f2eb35f0bc697ae64d4e8f51dd (diff) |
[cmake] Introduce Property to allow handling deps for GLOBAL_TARGET_DEPS
Instead of a hardcoded list in root CMakeLists.txt, introduce a global Property
that will be added to by the relevant find modules to add as a GLOBAL_TARGET_DEPS
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d0b08b8551..123728c2a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,6 +81,9 @@ if(CORE_SYSTEM_NAME STREQUAL linux) option(ENABLE_EVENTCLIENTS "Enable event clients support?" OFF) endif() +# set scope of INTERNAL_DEPS +set_property(GLOBAL PROPERTY INTERNAL_DEPS_PROP) + # Build static libraries per directory if(NOT CMAKE_GENERATOR MATCHES "Visual Studio" AND NOT CMAKE_GENERATOR STREQUAL Xcode) set(ENABLE_STATIC_LIBS TRUE) @@ -307,7 +310,8 @@ elseif(CORE_SYSTEM_NAME STREQUAL android) ${CORE_BUILD_DIR}/DllPaths_generated_android.h @ONLY) endif() -set(GLOBAL_TARGET_DEPS ffmpeg dvdnav crossguid fmt spdlog fstrcmp flatbuffers ${PLATFORM_GLOBAL_TARGET_DEPS}) +get_property(INTERNAL_DEPS GLOBAL PROPERTY INTERNAL_DEPS_PROP) +set(GLOBAL_TARGET_DEPS ${INTERNAL_DEPS} ${PLATFORM_GLOBAL_TARGET_DEPS}) # main library (used for main binary and tests) if(CMAKE_GENERATOR STREQUAL Xcode) |