Yes, you might be right.
I Actually just make a set of debug MSVC files if I am going to be working in 
debug (which I do most of the time anyway).
If I want release I just ask CMake to create release files. On Linux and 
probably other platforms also that is the only way to do it, so I've gotten 
used to it. 
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.

-Martin Lütken





-----Oprindelig meddelelse-----
Fra: [EMAIL PROTECTED] på vegne af Zschocke, Florian
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 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 in multi-configuration environments.

Regards,
Florian


_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake



_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to