diff options
author | Brad King <brad.king@kitware.com> | 2006-04-13 02:04:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-04-13 02:04:50 (GMT) |
commit | d4c5fe840beb029cb60572cabd643feb4e239830 (patch) | |
tree | 3bc37efec89d6bf17f6c5cd1efef91d236744031 /Tests/SimpleInstallS2/InstallScript1.cmake | |
parent | 58641b2ceb5d3401e1cb0e4bb897a9fe2329e525 (diff) | |
download | CMake-d4c5fe840beb029cb60572cabd643feb4e239830.zip CMake-d4c5fe840beb029cb60572cabd643feb4e239830.tar.gz CMake-d4c5fe840beb029cb60572cabd643feb4e239830.tar.bz2 |
ENH: Added INSTALL(CODE) mode to allow inline specification of install script code. This reduces the need for configuring an install script that needs some variable settings because the install code can set thing up first.
Diffstat (limited to 'Tests/SimpleInstallS2/InstallScript1.cmake')
-rw-r--r-- | Tests/SimpleInstallS2/InstallScript1.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/SimpleInstallS2/InstallScript1.cmake b/Tests/SimpleInstallS2/InstallScript1.cmake index 7ce8551..27b7725 100644 --- a/Tests/SimpleInstallS2/InstallScript1.cmake +++ b/Tests/SimpleInstallS2/InstallScript1.cmake @@ -1,2 +1,5 @@ MESSAGE("This is install script 1.") SET(INSTALL_SCRIPT_1_DID_RUN 1) +IF(INSTALL_CODE_DID_RUN) + MESSAGE(FATAL_ERROR "Install script 1 did not run before install code.") +ENDIF(INSTALL_CODE_DID_RUN) |