summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/gitlab_ci.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/gitlab_ci.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/gitlab_ci.cmake')
-rw-r--r--.gitlab/ci/gitlab_ci.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitlab/ci/gitlab_ci.cmake b/.gitlab/ci/gitlab_ci.cmake
index 697162c..080c93b 100644
--- a/.gitlab/ci/gitlab_ci.cmake
+++ b/.gitlab/ci/gitlab_ci.cmake
@@ -5,7 +5,11 @@ endif ()
# Set up the source and build paths.
set(CTEST_SOURCE_DIRECTORY "$ENV{CI_PROJECT_DIR}")
-set(CTEST_BINARY_DIRECTORY "${CTEST_SOURCE_DIRECTORY}/build")
+if("$ENV{CMAKE_CI_INPLACE}")
+ set(CTEST_BINARY_DIRECTORY "${CTEST_SOURCE_DIRECTORY}")
+else()
+ set(CTEST_BINARY_DIRECTORY "${CTEST_SOURCE_DIRECTORY}/build")
+endif()
if (NOT "$ENV{CTEST_SOURCE_SUBDIRECTORY}" STREQUAL "")
string(APPEND CTEST_SOURCE_DIRECTORY "/$ENV{CTEST_SOURCE_SUBDIRECTORY}")
endif ()