summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/build_command/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-12 22:12:52 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-12 22:17:40 (GMT)
commit2e1c2bd2dd97e426944d6ac18e4073ec26ddf64c (patch)
treeab1b249476f3b36baac84b5a970da85dcbb51c10 /Tests/RunCMake/build_command/RunCMakeTest.cmake
parent4e5cb375901293e8fedb5d8e44d1481e3f6799d6 (diff)
downloadCMake-2e1c2bd2dd97e426944d6ac18e4073ec26ddf64c.zip
CMake-2e1c2bd2dd97e426944d6ac18e4073ec26ddf64c.tar.gz
CMake-2e1c2bd2dd97e426944d6ac18e4073ec26ddf64c.tar.bz2
build_command: Fail early without CMAKE_MAKE_PROGRAM (#14005)
If CMAKE_MAKE_PROGRAM is not set fail with an error message instead of crashing. Suggest calling project() or enable_language() first to ensure that CMAKE_MAKE_PROGRAM is set.
Diffstat (limited to 'Tests/RunCMake/build_command/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/build_command/RunCMakeTest.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/build_command/RunCMakeTest.cmake b/Tests/RunCMake/build_command/RunCMakeTest.cmake
index 4525c57..eaa1d77 100644
--- a/Tests/RunCMake/build_command/RunCMakeTest.cmake
+++ b/Tests/RunCMake/build_command/RunCMakeTest.cmake
@@ -2,3 +2,7 @@ include(RunCMake)
run_cmake(ErrorsOFF)
run_cmake(ErrorsON)
+
+set(RunCMake_TEST_OPTIONS -DNoProject=1)
+run_cmake(BeforeProject)
+unset(RunCMake_TEST_OPTIONS)