[CMake] Strange behaviour on install

Brad King brad.king at kitware.com
Tue Oct 17 15:32:30 EDT 2006


Brad King wrote:
> Helio Chissini de Castro wrote:
>> INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/providers.xml 
>> DESTINATION /opt/fdo )
>>
>> INSTALL( CODE "MAKE_DIRECTORY\( /opt/fdo/Repositories/Library/DataFiles\)" )
[snip]
> MAKE_DIRECTORY is just a CMake command and knows nothing of installation
> or DESTDIR.  You need to reference it yourself.  Also note the docs for
> MAKE_DIRECTORY say it is deprecated and that you should use FILE:
> 
> INSTALL(CODE "
> FILE(MAKE_DIRECTORY $ENV{DESTDIR}/opt/fdo/Repositories/Library/DataFiles)
> ")

Oh, and when 2.4.4 is released you will be able to do

INSTALL(DIRECTORY DESTINATION /opt/fdo/Repositories/Library/DataFiles)

to get exactly what you want.

-Brad


More information about the CMake mailing list