summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/SkipInstallRulesWarning-check.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-09 14:37:17 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-01-09 14:37:17 (GMT)
commit69c366a28178027a5cf2629c0240d1709ae9ab55 (patch)
treefe61369dffe946ccb6b17830994d901e3af4662c /Tests/RunCMake/install/SkipInstallRulesWarning-check.cmake
parentf3a9eb45605638b42ca431731080875470cc229a (diff)
parentbe0458c5620d611a772fd3a25312cf5ae6cb492c (diff)
downloadCMake-69c366a28178027a5cf2629c0240d1709ae9ab55.zip
CMake-69c366a28178027a5cf2629c0240d1709ae9ab55.tar.gz
CMake-69c366a28178027a5cf2629c0240d1709ae9ab55.tar.bz2
Merge topic 'optional-install'
be0458c InstallRules: added new variable to disable generation of install rules
Diffstat (limited to 'Tests/RunCMake/install/SkipInstallRulesWarning-check.cmake')
-rw-r--r--Tests/RunCMake/install/SkipInstallRulesWarning-check.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/SkipInstallRulesWarning-check.cmake b/Tests/RunCMake/install/SkipInstallRulesWarning-check.cmake
new file mode 100644
index 0000000..2807698
--- /dev/null
+++ b/Tests/RunCMake/install/SkipInstallRulesWarning-check.cmake
@@ -0,0 +1,9 @@
+if(NOT EXISTS "${RunCMake_TEST_BINARY_DIR}/CMakeCache.txt")
+ message(FATAL_ERROR "missing test prerequisite CMakeCache.txt")
+endif()
+
+set(CMAKE_INSTALL_CMAKE "${RunCMake_TEST_BINARY_DIR}/cmake_install.cmake")
+
+if(EXISTS ${CMAKE_INSTALL_CMAKE})
+ message(FATAL_ERROR "${CMAKE_INSTALL_CMAKE} should not exist")
+endif()