summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/build_command/CMakeLists.txt
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/CMakeLists.txt
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/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/build_command/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/RunCMake/build_command/CMakeLists.txt b/Tests/RunCMake/build_command/CMakeLists.txt
index e8db6b0..f6e84c0 100644
--- a/Tests/RunCMake/build_command/CMakeLists.txt
+++ b/Tests/RunCMake/build_command/CMakeLists.txt
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 2.8)
-project(${RunCMake_TEST} NONE)
+if(NOT NoProject)
+ project(${RunCMake_TEST} NONE)
+endif()
include(${RunCMake_TEST}.cmake)