install_files() or install()?
Dmitry Suzdalev
dimsuz at gmail.com
Sun Apr 23 18:42:52 CEST 2006
On Sunday 23 April 2006 19:59, Alexander Neundorf wrote:
> Since the automake 2 cmake conversion script was written before the new
> install() command existed, it is not used.
> I'd suggest using the new one.
Then how would I rewrite:
install_files( ${some_install_dir} .*\\.png )
?
It uses regexps but docs of INSTALL command are quiet about using
regexps... :).
I tried
install( FILES .*\\.png DESTINATION ${some_install_dir} )
but it gave me this error:
CMake Error: Invalid escape sequence \.
CMake Error: Syntax error in cmake code at
/home/kde-devel/KDE-SVN/build/kdegames/libkdegames/carddecks/cards-aisleriot/cmake_install.cmake:20:
syntax error, unexpected cal_ERROR, expecting $end (75), when parsing string
"/home/kde-devel/KDE-SVN/kdegames/libkdegames/carddecks/cards-aisleriot/.*\.png"
CMake Error: Error in cmake code at
/home/kde-devel/KDE-SVN/build/kdegames/libkdegames/carddecks/cards-aisleriot/cmake_install.cmake:20:
FILE cannot create directory: /share/apps/carddecks/cards-aisleriot. Maybe
need administrative privileges.
When using old install_files all works OK.
Any ideas?
Thanks!
Dmitry.
More information about the Kde-buildsystem
mailing list