diff options
author | fuzzard <fuzzard@kodi.tv> | 2024-05-16 16:18:42 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2024-06-22 13:17:14 +1000 |
commit | e2c7f8ff59212f798a16eea00e66a3579bdcac12 (patch) | |
tree | 58e5b9bbcb0b28cf786493586cbea5b7ebae269c | |
parent | b2d661ad2d1a62e2f775650c5006392af6320521 (diff) |
[cmake][macro] core_required_dep append to required_deps list if dep found
-rw-r--r-- | cmake/scripts/common/Macros.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake index c55bf01a2a..77c148a911 100644 --- a/cmake/scripts/common/Macros.cmake +++ b/cmake/scripts/common/Macros.cmake @@ -407,6 +407,15 @@ function(core_require_dep) list(APPEND DEPLIBS ${${depup}_LIBRARIES}) list(APPEND DEP_DEFINES ${${depup}_DEFINITIONS}) export_dep() + + # We dont want to add a build tool + if (NOT ${depspec} IN_LIST optional_buildtools AND NOT ${depspec} IN_LIST required_buildtools) + # If dependency is found and is not in the list (eg shairplay) add to list + if (NOT ${depspec} IN_LIST required_deps) + set(required_deps ${required_deps} ${depspec} PARENT_SCOPE) + endif() + endif() + endforeach() endfunction() |