diff options
author | Brad King <brad.king@kitware.com> | 2013-03-13 17:34:36 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-03-13 17:34:36 (GMT) |
commit | 8128940ac128c97dbc331c8a0ddb79ebb60a3765 (patch) | |
tree | 73adc7212b35823a9ebae80b12ab262ec527ce06 /Modules | |
parent | 26bfece1af0e3b06778e56eddd9cdd1f448a5c77 (diff) | |
parent | d90f49b8948c3047cb0839ce505f796952dbd880 (diff) | |
download | CMake-8128940ac128c97dbc331c8a0ddb79ebb60a3765.zip CMake-8128940ac128c97dbc331c8a0ddb79ebb60a3765.tar.gz CMake-8128940ac128c97dbc331c8a0ddb79ebb60a3765.tar.bz2 |
Merge topic 'cleanup-early-include-CTest-failure'
d90f49b CTest: Fail early without PROJECT_BINARY_DIR (#14005)
2e1c2bd build_command: Fail early without CMAKE_MAKE_PROGRAM (#14005)
4e5cb37 Refactor RunCMake.build_command test to allow more cases
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CTestTargets.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CTestTargets.cmake b/Modules/CTestTargets.cmake index fd4bd80..5b6e062 100644 --- a/Modules/CTestTargets.cmake +++ b/Modules/CTestTargets.cmake @@ -16,6 +16,10 @@ if(NOT RUN_FROM_CTEST_OR_DART) message(FATAL_ERROR "Do not incldue CTestTargets.cmake directly") endif() +if(NOT PROJECT_BINARY_DIR) + message(FATAL_ERROR "Do not include(CTest) before calling project().") +endif() + # make directories in the binary tree file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/Testing/Temporary) get_filename_component(CMAKE_HOST_PATH ${CMAKE_COMMAND} PATH) |