diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-03-01 10:38:44 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-03-07 20:07:34 +1000 |
commit | 419dc83525cd25f52182e15847d4504149a62656 (patch) | |
tree | 4c659c1d5908bec875530f8e6ca4b7e41d480416 /cmake | |
parent | a4ed6ecd182005db87e28ff4291632107545db72 (diff) |
[cmake] BUILD_DEP_TARGET move include and add docinfo
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindCrossGUID.cmake | 1 | ||||
-rw-r--r-- | cmake/modules/FindDav1d.cmake | 1 | ||||
-rw-r--r-- | cmake/modules/FindFlatBuffers.cmake | 1 | ||||
-rw-r--r-- | cmake/modules/FindFmt.cmake | 1 | ||||
-rw-r--r-- | cmake/modules/FindFstrcmp.cmake | 1 | ||||
-rw-r--r-- | cmake/modules/FindRapidJSON.cmake | 1 | ||||
-rw-r--r-- | cmake/modules/FindSpdlog.cmake | 1 | ||||
-rw-r--r-- | cmake/modules/FindUdfread.cmake | 1 | ||||
-rw-r--r-- | cmake/scripts/common/ModuleHelpers.cmake | 13 |
9 files changed, 13 insertions, 8 deletions
diff --git a/cmake/modules/FindCrossGUID.cmake b/cmake/modules/FindCrossGUID.cmake index 3612c7930b..ba3e63f2fd 100644 --- a/cmake/modules/FindCrossGUID.cmake +++ b/cmake/modules/FindCrossGUID.cmake @@ -1,5 +1,4 @@ if(ENABLE_INTERNAL_CROSSGUID) - include(ExternalProject) include(cmake/scripts/common/ModuleHelpers.cmake) set(MODULE_LC crossguid) diff --git a/cmake/modules/FindDav1d.cmake b/cmake/modules/FindDav1d.cmake index 44a5ea0ba8..6e313036e2 100644 --- a/cmake/modules/FindDav1d.cmake +++ b/cmake/modules/FindDav1d.cmake @@ -10,7 +10,6 @@ # DAV1D_LIBRARIES - the dav1d libraries if(ENABLE_INTERNAL_DAV1D) - include(ExternalProject) include(cmake/scripts/common/ModuleHelpers.cmake) set(MODULE_LC dav1d) diff --git a/cmake/modules/FindFlatBuffers.cmake b/cmake/modules/FindFlatBuffers.cmake index 7b655e96a6..71db000573 100644 --- a/cmake/modules/FindFlatBuffers.cmake +++ b/cmake/modules/FindFlatBuffers.cmake @@ -10,7 +10,6 @@ # FLATBUFFERS_MESSAGES_INCLUDE_DIR - the directory for generated headers if(ENABLE_INTERNAL_FLATBUFFERS) - include(ExternalProject) include(cmake/scripts/common/ModuleHelpers.cmake) set(MODULE_LC flatbuffers) diff --git a/cmake/modules/FindFmt.cmake b/cmake/modules/FindFmt.cmake index 9f79580e19..fd85de23f7 100644 --- a/cmake/modules/FindFmt.cmake +++ b/cmake/modules/FindFmt.cmake @@ -13,7 +13,6 @@ # fmt - The Fmt library if(ENABLE_INTERNAL_FMT) - include(ExternalProject) include(cmake/scripts/common/ModuleHelpers.cmake) set(MODULE_LC fmt) diff --git a/cmake/modules/FindFstrcmp.cmake b/cmake/modules/FindFstrcmp.cmake index 324464e19d..fe671dffa3 100644 --- a/cmake/modules/FindFstrcmp.cmake +++ b/cmake/modules/FindFstrcmp.cmake @@ -12,7 +12,6 @@ if(ENABLE_INTERNAL_FSTRCMP) find_program(LIBTOOL libtool REQUIRED) - include(ExternalProject) include(cmake/scripts/common/ModuleHelpers.cmake) set(MODULE_LC fstrcmp) diff --git a/cmake/modules/FindRapidJSON.cmake b/cmake/modules/FindRapidJSON.cmake index b8d6c49390..5ba7afa742 100644 --- a/cmake/modules/FindRapidJSON.cmake +++ b/cmake/modules/FindRapidJSON.cmake @@ -9,7 +9,6 @@ # RapidJSON_INCLUDE_DIRS - the RapidJSON parser include directory # if(ENABLE_INTERNAL_RapidJSON) - include(ExternalProject) include(cmake/scripts/common/ModuleHelpers.cmake) set(MODULE_LC rapidjson) diff --git a/cmake/modules/FindSpdlog.cmake b/cmake/modules/FindSpdlog.cmake index 4559d3e2e5..833bad1289 100644 --- a/cmake/modules/FindSpdlog.cmake +++ b/cmake/modules/FindSpdlog.cmake @@ -14,7 +14,6 @@ # Spdlog::Spdlog - The Spdlog library if(ENABLE_INTERNAL_SPDLOG) - include(ExternalProject) include(cmake/scripts/common/ModuleHelpers.cmake) set(MODULE_LC spdlog) diff --git a/cmake/modules/FindUdfread.cmake b/cmake/modules/FindUdfread.cmake index 45170502f0..19745e2478 100644 --- a/cmake/modules/FindUdfread.cmake +++ b/cmake/modules/FindUdfread.cmake @@ -11,7 +11,6 @@ # UDFREAD_DEFINITIONS - the udfread definitions if(ENABLE_INTERNAL_UDFREAD) - include(ExternalProject) include(cmake/scripts/common/ModuleHelpers.cmake) set(MODULE_LC udfread) diff --git a/cmake/scripts/common/ModuleHelpers.cmake b/cmake/scripts/common/ModuleHelpers.cmake index 9ab6c760fa..371e3d6a26 100644 --- a/cmake/scripts/common/ModuleHelpers.cmake +++ b/cmake/scripts/common/ModuleHelpers.cmake @@ -86,7 +86,20 @@ macro(SETUP_BUILD_VARS) endmacro() # Macro to create externalproject_add target +# +# Common usage +# +# CMAKE_ARGS: cmake(required) +# PATCH_COMMAND: ALL(optional) +# CONFIGURE_COMMAND: autoconf(required), meson(required) +# BUILD_COMMAND: autoconf(required), meson(required), cmake(optional) +# INSTALL_COMMAND: autoconf(required), meson(required), cmake(optional) +# BUILD_IN_SOURCE: ALL(optional) +# BUILD_BYPRODUCTS: ALL(optional) +# macro(BUILD_DEP_TARGET) + include(ExternalProject) + if(CMAKE_ARGS) set(CMAKE_ARGS CMAKE_ARGS ${CMAKE_ARGS}) endif() |