[CMake] Strange behaviour on install
Helio Chissini de Castro
helio at kde.org
Tue Oct 17 13:34:46 EDT 2006
Hi
I got a code similar like this:
#--------------
INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/providers.xml
DESTINATION /opt/fdo )
INSTALL( CODE "MAKE_DIRECTORY\( /opt/fdo/Repositories/Library/DataFiles\)" )
#-------------
If i install as a root using "make install"
/opt/fdo/providers.xml
/opt/fdo/Repositories/Library/DataFiles
But if i use make DESTDIR=/tmp/test install, i got:
/opt/fdo/providers.xml
And the directory isn't created.
Is there some trick to make MAKE_DIRECTORY works with DESTDIR on install ?
Thanks in advance
--
Helio Chissini de Castro
KDE Project South America Primary Contact
Curitiba - Brasil
More information about the CMake
mailing list