summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/gitlab_ci.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-05-05 15:18:48 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-05-07 17:25:58 (GMT)
commit50cbc9b77a7df57f2616fe2c4f5e6778f00f1cf8 (patch)
tree0202cfece9150998ba0b307328aa82ad53add7c7 /.gitlab/ci/gitlab_ci.cmake
parentd78bf2f229d6e22ab2ad76fe8256532d009b70df (diff)
downloadCMake-50cbc9b77a7df57f2616fe2c4f5e6778f00f1cf8.zip
CMake-50cbc9b77a7df57f2616fe2c4f5e6778f00f1cf8.tar.gz
CMake-50cbc9b77a7df57f2616fe2c4f5e6778f00f1cf8.tar.bz2
gitlab-ci: add a sphinx builder
Diffstat (limited to '.gitlab/ci/gitlab_ci.cmake')
-rw-r--r--.gitlab/ci/gitlab_ci.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab/ci/gitlab_ci.cmake b/.gitlab/ci/gitlab_ci.cmake
index 401cc40..b49f51d 100644
--- a/.gitlab/ci/gitlab_ci.cmake
+++ b/.gitlab/ci/gitlab_ci.cmake
@@ -5,6 +5,9 @@ endif ()
# Set up the source and build paths.
set(CTEST_SOURCE_DIRECTORY "$ENV{CI_PROJECT_DIR}")
+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 "")