[CMake] Invoking an script from the link command.
Óscar Fuentes
ofv at wanadoo.es
Thu Aug 14 00:18:06 EDT 2008
Óscar Fuentes <ofv at wanadoo.es> writes:
> Bill Hoffman <bill.hoffman at kitware.com>
> writes:
[about using shell backquotes embedded on link commands through
`target_link_libraries']
>> I don't even think this will work with cmake 2.6.0, because we use
>> link scripts.
>
> It is working with 2.6.1 and MSYS Makefiles. Here you are doing
> something like this:
>
> cd ${CMAKE_CURRENT_BINARY_DIR} && /path/to/g++.exe ...args for linking...
It doesn't work on Linux (Debian Etch x86) Unix Makefiles.
Too bad CMake is not consistent on this. Not having the possibility of
customising the command on make-time seems a serious limitation.
--
Oscar
More information about the CMake
mailing list