[CMake] Problem with ADD_CUSTOM_COMMAND and compiler
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Oct 24 13:29:19 EDT 2008
On Thursday 23 October 2008, s.bedouet at voila.fr wrote:
> Hi,
> These files are needed for the build. The only way I found is to put
> include path in a variable and then used it in add_custom_command....
> Sebastien
Hmm, here's a not very nice idea, you could try something like:
make a add_custom_command(OUTPUT foo.i
COMMAND ${CMAKE_MAKE_PROGRAM} foo.i
COMMAND ${CMAKE_COMMAND} -E copy_if_different foo.i <the
appropriate location
DEPENDS ... )
Alex
More information about the CMake
mailing list