[CMake] installing/overwriting single file
Randy Heiland
heiland at indiana.edu
Wed Nov 4 17:11:48 EST 2009
That does indeed work great - thanks! If anyone knows if this
solution is dependent on a recent cmake version, I'd welcome hearing
about it. I happen to be using 2.8rc3, but would like to know if it
might cause problems for earlier versions.
-Randy
On Nov 4, 2009, at 4:07 PM, Alexander Neundorf wrote:
> On Wednesday 04 November 2009, Randy Heiland wrote:
>> During an 'install', I would like to copy/overwrite a source file
>> to a
>> destination file. How? Something like the following (in syntax),
>> although I am assuming that it is only legal to copy a file into a
>> dir
>> (and therefore the 'foo.cxx' isn't allow)?
>>
>> INSTALL(FILES
>> ${CMAKE_SOURCE_DIR}/foo_new.cxx
>> DESTINATION ${CMAKE_INSTALL_PREFIX}/foo.cxx
>> )
>
> Does
> INSTALL(FILES ${CMAKE_SOURCE_DIR}/foo_new.cxx
> DESTINATION ${CMAKE_INSTALL_PREFIX}
> RENAME foo.cxx)
>
> do what you want ?
>
> Alex
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list