[cmake-commits] king committed CMakeLists.txt 1.68 1.69
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Oct 5 11:31:59 EDT 2006
Update of /cvsroot/CMake/CMake/Tests/SimpleInstall
In directory public:/mounts/ram/cvs-serv5603/Tests/SimpleInstall
Modified Files:
CMakeLists.txt
Log Message:
ENH: Added OPTIONAL option to INSTALL command to allow installation of files if they exist while ignoring them otherwise. This addresses bug#2922.
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/SimpleInstall/CMakeLists.txt,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- CMakeLists.txt 29 Aug 2006 19:04:29 -0000 1.68
+++ CMakeLists.txt 5 Oct 2006 15:31:57 -0000 1.69
@@ -166,6 +166,9 @@
)
INSTALL_FILES(/MyTest/include FILES lib3.h)
+ # Test optional installation.
+ INSTALL(FILES does_not_exist.h DESTINATION MyTest/include/foo OPTIONAL)
+
# Test configuration-specific installation.
INSTALL(FILES lib1.h RENAME lib1release.h CONFIGURATIONS Release
DESTINATION MyTest/include/Release
More information about the Cmake-commits
mailing list