Merge branch 'cmake-no-list-PREPEND-release' into cmake-no-list-PREPEND

* cmake-no-list-PREPEND-release:
  cmake: avoid `list(PREPEND)` in CMake's own CMake code
This commit is contained in:
Ben Boeckel
2026-05-14 21:00:46 -04:00
2 changed files with 3 additions and 2 deletions

View File

@@ -3211,7 +3211,8 @@ if(BUILD_TESTING)
AND NOT CMAKE_Fortran_COMPILER_ID STREQUAL "LFortran"
)
if(DEFINED CMake_TEST_Fortran_SUBMODULES)
list(PREPEND CMake_TEST_FortranModules_BUILD_OPTIONS -DCMake_TEST_Fortran_SUBMODULES:BOOL=${CMake_TEST_Fortran_SUBMODULES})
list(INSERT CMake_TEST_FortranModules_BUILD_OPTIONS 0
-DCMake_TEST_Fortran_SUBMODULES:BOOL=${CMake_TEST_Fortran_SUBMODULES})
endif()
add_test(FortranModules ${CMAKE_CTEST_COMMAND}
--build-and-test

View File

@@ -213,7 +213,7 @@ foreach(format IN LISTS doc_formats)
if(sphinx_use_build_log)
set(doc_format_log "build-${format}.log")
set(build_comment_tail ": see Utilities/Sphinx/${doc_format_log}")
list(PREPEND doc_format_log ">")
list(INSERT doc_format_log 0 ">")
endif()
if(CMake_SPHINX_CMAKE_ORG)
set(doctrees "doctrees/${format}")