[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.101 1.102

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Feb 24 11:41:45 EST 2009


Update of /cvsroot/CMake/CMake/Tests/SimpleInstall
In directory public:/mounts/ram/cvs-serv7197/Tests/SimpleInstall

Modified Files:
	CMakeLists.txt 
Log Message:
ENH: Add install(DIRECTORY) option 'OPTIONAL'

This adds the OPTIONAL option to the install(DIRECTORY) command.  It
tells the installation rule that it is not an error if the source
directory does not exist.  See issue #8394.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/SimpleInstall/CMakeLists.txt,v
retrieving revision 1.101
retrieving revision 1.102
diff -C 2 -d -r1.101 -r1.102
*** CMakeLists.txt	18 Aug 2008 15:39:22 -0000	1.101
--- CMakeLists.txt	24 Feb 2009 16:41:40 -0000	1.102
***************
*** 271,274 ****
--- 271,277 ----
    INSTALL(DIRECTORY DESTINATION MyTest/share/empty)
  
+   # Test optional directory installation.
+   INSTALL(DIRECTORY does-not-exist DESTINATION MyTest/share OPTIONAL)
+ 
    # Test user-specified install scripts, with and without COMPONENT.
    INSTALL(



More information about the Cmake-commits mailing list