summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/ctest_build.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-05-08 14:15:27 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-05-22 15:34:14 (GMT)
commita1b1fc611bc8aeb519b79b3e1b86ce4e4dbc55e9 (patch)
treec2820dc710396a9de6b6758a9ce7d182184d7016 /.gitlab/ci/ctest_build.cmake
parent3e1a1ba92d0e64324916f65214b633bc067997bf (diff)
downloadCMake-a1b1fc611bc8aeb519b79b3e1b86ce4e4dbc55e9.zip
CMake-a1b1fc611bc8aeb519b79b3e1b86ce4e4dbc55e9.tar.gz
CMake-a1b1fc611bc8aeb519b79b3e1b86ce4e4dbc55e9.tar.bz2
gitlab-ci: add Linux makefiles and ninja builders
Diffstat (limited to '.gitlab/ci/ctest_build.cmake')
-rw-r--r--.gitlab/ci/ctest_build.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab/ci/ctest_build.cmake b/.gitlab/ci/ctest_build.cmake
index 28bdb35..6402a5d 100644
--- a/.gitlab/ci/ctest_build.cmake
+++ b/.gitlab/ci/ctest_build.cmake
@@ -28,3 +28,14 @@ if ("$ENV{CTEST_NO_WARNINGS_ALLOWED}" AND num_warnings GREATER 0)
message(FATAL_ERROR
"Found ${num_warnings} warnings (treating as fatal).")
endif ()
+
+if (NOT "$ENV{CMake_SKIP_INSTALL}")
+ ctest_build(APPEND
+ TARGET install
+ RETURN_VALUE install_result)
+
+ if (install_result)
+ message(FATAL_ERROR
+ "Failed to install")
+ endif ()
+endif ()