[CMake] text file modifications while Install

Michael Wild themiwi at gmail.com
Mon Jan 17 08:56:20 EST 2011


On 01/17/2011 02:53 PM, Ilja Golshtein wrote:
> Hello, list,
> 
> please, suggest proper way to do some text file modifications while Install.
> 
> Basically I need something similar with RPATH change Cmake does,
> but against a configuration file.
> 
> Currently I create amended version of the config make-time and
> use it install-time. It does not look like an elegant solution.
> 
> Ideas how to do it better?
> 
> Thanks and sorry if double posted.
> 

I create two versions, one for use in the build-tree and another for the
install-tree (e.g. ${CMAKE_BINARY_DIR}/InstallFiles/.../config.cfg) at
CMake-time.

Don't think there's a better (and safer) solution.

Michael


More information about the CMake mailing list