summaryrefslogtreecommitdiffstats
path: root/Utilities/Sphinx/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-23 12:45:57 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-23 12:46:08 (GMT)
commit87b9a31489c4251f3fb6a9b79da6156cdb1a1d64 (patch)
tree3c7f0f32ec7928bed69138c5fd9fb05533d7e564 /Utilities/Sphinx/CMakeLists.txt
parent4281f6ac345601ac6f40c5fcb3b43af8361e98ab (diff)
parent9629be8080d054ab44603802923a3ce72620f864 (diff)
downloadCMake-87b9a31489c4251f3fb6a9b79da6156cdb1a1d64.zip
CMake-87b9a31489c4251f3fb6a9b79da6156cdb1a1d64.tar.gz
CMake-87b9a31489c4251f3fb6a9b79da6156cdb1a1d64.tar.bz2
Merge topic 'modernize-build-self'
9629be8080 Build: Use `CMAKE_CURRENT_XXX_DIR` instead of top dirs e6fb5a1feb Build: Sort linked libraries list of `CMakeLib` aa7290e8dc Build: Use imported target `Threads::Threads` instead of variable df8ad72ffa Build: Use imported target `kwiml::kwiml` instead of variables eeebf31e54 Build: Use imported target `LibRHash::LibRHash` instead of variables 08be01a181 Build: Use imported target `LibUV::LibUV` instead of variables ddac6dcbe8 Build: Use imported target `JsonCpp::JsonCpp` instead of variables ac76c53d33 Build: Use imported target `CURL::libcurl` instead of variables ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !7570
Diffstat (limited to 'Utilities/Sphinx/CMakeLists.txt')
-rw-r--r--Utilities/Sphinx/CMakeLists.txt12
1 files changed, 3 insertions, 9 deletions
diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt
index ffca624..886f4e0 100644
--- a/Utilities/Sphinx/CMakeLists.txt
+++ b/Utilities/Sphinx/CMakeLists.txt
@@ -161,7 +161,7 @@ endif()
set(doc_format_outputs "")
set(doc_format_last "")
-foreach(format ${doc_formats})
+foreach(format IN LISTS doc_formats)
set(doc_format_output "doc_format_${format}")
set(doc_format_log "build-${format}.log")
if(CMake_SPHINX_CMAKE_ORG)
@@ -219,13 +219,7 @@ endforeach()
add_custom_target(documentation ALL DEPENDS ${doc_format_outputs})
if(CMake_SPHINX_DEPEND_ON_EXECUTABLES)
- foreach(t
- cmake
- ccmake
- cmake-gui
- cpack
- ctest
- )
+ foreach(t IN ITEMS cmake ccmake cmake-gui cpack ctest)
if(TARGET ${t})
# Build documentation after main executables.
add_dependencies(documentation ${t})
@@ -248,7 +242,7 @@ endif()
if(SPHINX_MAN)
file(GLOB man_rst RELATIVE ${CMake_SOURCE_DIR}/Help/manual
${CMake_SOURCE_DIR}/Help/manual/*.[1-9].rst)
- foreach(m ${man_rst})
+ foreach(m IN LISTS man_rst)
if("x${m}" MATCHES "^x(.+)\\.([1-9])\\.rst$")
set(name "${CMAKE_MATCH_1}")
set(sec "${CMAKE_MATCH_2}")