MantisBT - CMake
View Issue Details
0003572CMakeCMakepublic2006-08-01 18:592006-08-29 15:10
Brandon Van Every 
Brad King 
lowfeaturealways
closedfixed 
 
 
0003572: INSTALL an empty directory
Installing an empty directory is sometimes necessary. It can be accomplished with

INSTALL(CODE "
  MESSAGE(STATUS \"Installing \${CMAKE_INSTALL_PREFIX}/myemptydir\")
  MAKE_DIRECTORY(\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/myemptydir\")
")

but this is somewhat arcane, requiring several levels of learning about escapes, absolute pathnames, and environmental evaluation at install time. A much simpler interface would be:

INSTALL(DIRECTORY DESTINATION myemptydir)
No tags attached.
Issue History

Notes
(0004798)
Brad King   
2006-08-29 15:09   
The following changes add this feature to the recently created INSTALL(DIRECTORY) command. This will be included in CMake 2.4.4.

new revision: 1.15; previous revision: 1.14
/cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v <-- cmFileCommand.cxx
/cvsroot/CMake/CMake/Source/cmInstallCommand.h,v <-- cmInstallCommand.h
new revision: 1.71; previous revision: 1.70
/cvsroot/CMake/CMake/Source/cmInstallCommand.cxx,v <-- cmInstallCommand.cxx
new revision: 1.15; previous revision: 1.14
/cvsroot/CMake/CMake/Tests/SimpleInstall/CMakeLists.txt,v <-- CMakeLists.txt
new revision: 1.68; previous revision: 1.67
(0004799)
Brad King   
2006-08-29 15:10   
Oops, that log should be

/cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v <-- cmFileCommand.cxx
new revision: 1.71; previous revision: 1.70
/cvsroot/CMake/CMake/Source/cmInstallCommand.cxx,v <-- cmInstallCommand.cxx
new revision: 1.15; previous revision: 1.14
/cvsroot/CMake/CMake/Source/cmInstallCommand.h,v <-- cmInstallCommand.h
new revision: 1.15; previous revision: 1.14
/cvsroot/CMake/CMake/Tests/SimpleInstall/CMakeLists.txt,v <-- CMakeLists.txt
new revision: 1.68; previous revision: 1.67