aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/scripts/common/Macros.cmake9
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()