Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Pau Garcia i Quiles
On Wed, Dec 24, 2008 at 12:43 AM, Bill Hoffman wrote: > Pau Garcia i Quiles wrote: >> >> On Tue, Dec 23, 2008 at 9:38 PM, Andrey Sploshnov >> wrote: >>> >>> From documentation to CMake 2.6.x: >>> >>> "Note that the PRE_BUILD option is only supported on Visual Studio 7 or >>> later. For all other

Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Bill Hoffman
Pau Garcia i Quiles wrote: On Tue, Dec 23, 2008 at 9:38 PM, Andrey Sploshnov wrote: From documentation to CMake 2.6.x: "Note that the PRE_BUILD option is only supported on Visual Studio 7 or later. For all other generators PRE_BUILD will be treated as PRE_LINK." I'm using Visual Studio 9, wh

Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Pau Garcia i Quiles
On Tue, Dec 23, 2008 at 9:38 PM, Andrey Sploshnov wrote: > From documentation to CMake 2.6.x: > > "Note that the PRE_BUILD option is only supported on Visual Studio 7 or > later. For all other generators PRE_BUILD will be treated as PRE_LINK." I'm using Visual Studio 9, which is newer than VS7, s

Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Andrey Sploshnov
>From documentation to CMake 2.6.x: "Note that the PRE_BUILD option is only supported on Visual Studio 7 or later. For all other generators PRE_BUILD will be treated as PRE_LINK." What are you actually trying to do? If you want to perform some actions before actually build the target, use of add

[CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Pau Garcia i Quiles
Hello, I'm trying ADD_CUSTOM_COMMAND(TARGET ... PRE_BUILD) but it does not work here. This is how I'm using it: ADD_CUSTOM_COMMAND(TARGET thetarget PRE_BUILD COMMAND touch ${CMAKE_CURRENT_BINARY_DIR}/helloworld