summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/ctest_standalone.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-03-02 14:16:18 (GMT)
committerBrad King <brad.king@kitware.com>2022-03-02 14:47:02 (GMT)
commitb88f7aad639a46ea43bfe2ac9246d1c9bdbb9c0a (patch)
treeb59d57adb75ce69ba49a02564a83b735693747a6 /.gitlab/ci/ctest_standalone.cmake
parent2a7ac62c04f2c4417306a505123a675baef82c8e (diff)
downloadCMake-b88f7aad639a46ea43bfe2ac9246d1c9bdbb9c0a.zip
CMake-b88f7aad639a46ea43bfe2ac9246d1c9bdbb9c0a.tar.gz
CMake-b88f7aad639a46ea43bfe2ac9246d1c9bdbb9c0a.tar.bz2
ci: add nightly CI job to build CMake in-place
Diffstat (limited to '.gitlab/ci/ctest_standalone.cmake')
-rw-r--r--.gitlab/ci/ctest_standalone.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_standalone.cmake b/.gitlab/ci/ctest_standalone.cmake
index cec2de2..9199693 100644
--- a/.gitlab/ci/ctest_standalone.cmake
+++ b/.gitlab/ci/ctest_standalone.cmake
@@ -23,6 +23,10 @@ set(CTEST_UPDATE_VERSION_ONLY ON)
set(CTEST_UPDATE_COMMAND "${GIT_EXECUTABLE}")
ctest_update()
+if("$ENV{CMAKE_CI_BOOTSTRAP}")
+ set(CTEST_CONFIGURE_COMMAND "\"${CTEST_SOURCE_DIRECTORY}/bootstrap\" --parallel=${nproc}")
+endif()
+
# Configure the project.
ctest_configure(
OPTIONS "${cmake_args}"