[CMake] Fwd: how to install files outside /usr in rpm?
Eric Noulard
eric.noulard at gmail.com
Tue May 13 10:47:00 EDT 2008
2008/5/13, Erik Sjölund <erik.sjolund at sbc.su.se>:
> Thanks for the info!
>
> That works if the installed files are unmodified but what if I would
> like to use
>
> configure_file(InputFile OutputFile
> [COPYONLY] [ESCAPE_QUOTES] [@ONLY])
>
> to accomodate for e.g. the default location of a configure file?
> configure_file() only has access to to CMAKE_INSTALL_PREFIX and not DESTDIR.
That's true,
That's why I think it's better to avoid absolute path install.
Concerning executing some CMake script at _install time_ you may
look at:
install([[SCRIPT <file>] [CODE <code>]] [...])
signature of the CMake install command.
--
Erk
More information about the CMake
mailing list