[CMake] configuration specific ADD_CUSTOM_COMMAND

Bill Hoffman bill.hoffman at kitware.com
Wed Mar 12 08:21:14 EDT 2008


Zschocke, Florian wrote:
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] 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 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_INTDIR in it.

-Bill


More information about the CMake mailing list