Re: [CMake] Custom Commands & Generator Expressions

2014-01-29 Thread Steven Wilson
Ok. Thanks for the help! I'll take a look at bug #14353 as I have time. On Wed, Jan 29, 2014 at 2:13 PM, Stephen Kelly wrote: > Steven Wilson wrote: > > > "\$<1:strip" -u -r customcommandtest> > > > > Note the "\$<1:strip" -u -r customcommandtest> output from the generator > > expression. >

Re: [CMake] Custom Commands & Generator Expressions

2014-01-29 Thread Stephen Kelly
Steven Wilson wrote: > "\$<1:strip" -u -r customcommandtest> > > Note the "\$<1:strip" -u -r customcommandtest> output from the generator > expression. > > What do I need to change in the POST_BUILD custom command to make the > generator expression work correctly? The generator expression stops

[CMake] Custom Commands & Generator Expressions

2014-01-29 Thread Steven Wilson
Consider the following CMakeLists.txt file (on a Mac, 10.9.1, Xcode 5, Unix Makefiles generator): cmake_minimum_required(VERSION 2.8.12) project(CustomCommandTest) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test.cpp COMMAND echo "#include " > ${CMAKE_CURRENT_BINARY_DIR}/test.cpp COMMA