CMake/Tests/RunCMake/install/SkipInstallRulesNoWarning2-check.cmake
Nils Gladitz be0458c562 InstallRules: added new variable to disable generation of install rules
The boolean variable CMAKE_SKIP_INSTALL_RULES
allows disabling generation of install rules for projects which don't
want them.
2014-01-08 16:28:14 +01:00

10 lines
318 B
CMake

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()