diff options
| author | Repository mirror & CI <repomirrorci@gentoo.org> | 2025-11-16 15:45:50 +0000 |
|---|---|---|
| committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2025-11-16 15:45:50 +0000 |
| commit | b7822bdcda8af561c9f3881094d4fc7b45701ad3 (patch) | |
| tree | c2cd360c3e8a0867ee561d3ed56b101ecd9ebc1b /eclass/cmake.eclass | |
| parent | 445bf1da2e20b2a15aa5ff7c3c2e278e7609ca44 (diff) | |
| parent | 85760842ba46caf62dc26ea1342d152ef5f4e67f (diff) | |
| download | kde-b7822bdcda8af561c9f3881094d4fc7b45701ad3.tar.gz kde-b7822bdcda8af561c9f3881094d4fc7b45701ad3.tar.bz2 kde-b7822bdcda8af561c9f3881094d4fc7b45701ad3.zip | |
Merge updates from master
Diffstat (limited to 'eclass/cmake.eclass')
| -rw-r--r-- | eclass/cmake.eclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 20a02768c80..6fa083b2ff2 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -409,6 +409,17 @@ _cmake_minreqver-info() { fi } +# @FUNCTION: cmake_prepare-per-cmakelists +# @USAGE: <path-to-current-CMakeLists.txt> +# @DESCRIPTION: +# Override this to be provided with a hook into the cmake_src_prepare loop +# over all CMakeLists.txt below CMAKE_USE_DIR. Will be called from inside +# that loop with <path-to-current-CMakeLists.txt> as single argument. +# Used for recursive CMakeLists.txt detections and modifications. +cmake_prepare-per-cmakelists() { + return +} + # @FUNCTION: _cmake_modify-cmakelists # @INTERNAL # @DESCRIPTION: @@ -450,6 +461,7 @@ _cmake_modify-cmakelists() { _CMAKE_MINREQVER_CMAKE316+=( "${file#"${CMAKE_USE_DIR}/"}":"${ver}" ) fi fi + cmake_prepare-per-cmakelists ${file} done < <(find "${CMAKE_USE_DIR}" -type f -iname "CMakeLists.txt" -print0 || die) # NOTE Append some useful summary here |
