summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/SkipInstallRulesNoWarning2-check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/install/SkipInstallRulesNoWarning2-check.cmake')
-rw-r--r--Tests/RunCMake/install/SkipInstallRulesNoWarning2-check.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/install/SkipInstallRulesNoWarning2-check.cmake b/Tests/RunCMake/install/SkipInstallRulesNoWarning2-check.cmake
new file mode 100644
index 0000000..4372b77
--- /dev/null
+++ b/Tests/RunCMake/install/SkipInstallRulesNoWarning2-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(NOT EXISTS ${CMAKE_INSTALL_CMAKE})
+ message(FATAL_ERROR "${CMAKE_INSTALL_CMAKE} should exist")
+endif()