diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-09-15 13:32:31 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-09-16 17:35:53 (GMT) |
commit | f0aaf24f0801ee5ff6107681f2740a892fa90aa1 (patch) | |
tree | 51efa4d642f4d0513fe4c22e9f72c4a95c82b8b5 /.gitlab | |
parent | 3a96ea903f370b5fb07651ad1e0c84bbd99cd06c (diff) | |
download | CMake-f0aaf24f0801ee5ff6107681f2740a892fa90aa1.zip CMake-f0aaf24f0801ee5ff6107681f2740a892fa90aa1.tar.gz CMake-f0aaf24f0801ee5ff6107681f2740a892fa90aa1.tar.bz2 |
gitlab-ci: always place the build directory at the top
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/gitlab_ci.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab/ci/gitlab_ci.cmake b/.gitlab/ci/gitlab_ci.cmake index 698d5ea..7bd9300 100644 --- a/.gitlab/ci/gitlab_ci.cmake +++ b/.gitlab/ci/gitlab_ci.cmake @@ -5,10 +5,10 @@ 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 (NOT "$ENV{CTEST_SOURCE_SUBDIRECTORY}" STREQUAL "") string(APPEND CTEST_SOURCE_DIRECTORY "/$ENV{CTEST_SOURCE_SUBDIRECTORY}") endif () -set(CTEST_BINARY_DIRECTORY "${CTEST_SOURCE_DIRECTORY}/build") if ("$ENV{CMAKE_CONFIGURATION}" STREQUAL "") message(FATAL_ERROR |