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 _______________________________________________ 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