Re: [CMake] configuration specific ADD_CUSTOM_COMMAND

2008-03-12 Thread Bill Hoffman
Zschocke, Florian wrote: From: Bill Hoffman [mailto:[EMAIL PROTECTED] With the use of CMAKE_CFG_INTDIR, you should be able to get to the targets you need inside custom commands with the multiconfiguration build systems. Have you tried CVS CMake, I think that the LOCATION of the target includ

Re: [CMake] configuration specific ADD_CUSTOM_COMMAND

2008-03-12 Thread Zschocke, Florian
> From: Bill Hoffman [mailto:[EMAIL PROTECTED] > > With the use of CMAKE_CFG_INTDIR, you should be able to get to the > targets you need inside custom commands with the multiconfiguration > build systems. Have you tried CVS CMake, I think that the LOCATION of > the target includes CMAKE_CFG_INTD

Re: [CMake] configuration specific ADD_CUSTOM_COMMAND

2008-03-12 Thread Bill Hoffman
Zschocke, Florian wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Lütken The problem I suppose is that CMake is running before MSVC and thus have no way of knowing which configuration you will choose unless you tell so when generating the project. With the use o

Re: [CMake] configuration specific ADD_CUSTOM_COMMAND

2008-03-12 Thread Zschocke, Florian
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Lütken > > The problem I suppose is that CMake is running before MSVC and thus have no > way > of knowing which configuration you will choose unless you tell so when > generating the project. Actually I consider this a bug, or

Re: [CMake] configuration specific ADD_CUSTOM_COMMAND

2008-03-12 Thread Martin Lütken
orian Sendt: ti 11-03-2008 16:54 Til: cmake@cmake.org Emne: Re: [CMake] configuration specific ADD_CUSTOM_COMMAND > Yes just use something like: > > IF ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" ) > > ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" ) For generation M

Re: [CMake] configuration specific ADD_CUSTOM_COMMAND

2008-03-11 Thread Zschocke, Florian
> Yes just use something like: > > IF ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" ) > > ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" ) For generation Makefiles this could work. But what about MSVS project files? My understanding was that this wouldn't work since the CMAKE_BUILD_TYPE will not be used

Re: [CMake] configuration specific ADD_CUSTOM_COMMAND (was: Target properties LOCATION and DEBUG_POSTFIX)

2008-03-11 Thread Martin Lutken
Yes just use something like: IF ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" ) ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL "Debug" ) IF ( ${CMAKE_BUILD_TYPE} STREQUAL "Release" ) ENDIF ( ${CMAKE_BUILD_TYPE} STREQUAL "Release" ) -Martin Lutken On Tuesday 11 March 2008 10:16:32 Zschocke, Florian wrote: > H

Re: [CMake] configuration specific ADD_CUSTOM_COMMAND (was: Target properties LOCATION and DEBUG_POSTFIX)

2008-03-11 Thread Zschocke, Florian
Hi! I'm trying this again from a different angle: Is it possible to add a custom command only for a specific configuration, i.e. build type? So I could add a certain command only for DEBUG and a different one for RELEASE? Thanks, Florian Zschocke > -Original Message- > From: [EMAIL PR