On Fri, May 15, 2009 at 1:59 AM, James Bigler <[email protected]> wrote: > Is there a configuration environment variable for VS that I could use to > change the behavior of an add_custom_command based on whether I'm building a > debug or release build? > > I want something like this: > > add_custom_command(${OUTPUT_FILE} > COMMAND ${CMAKE_COMMAND} ARGS "$(Config)" -P "${my_custom_script}" > )
Yes, that's Visual Studio's $(ConfigurationName) variable. VS (not CMake) will expand it during the build. - Dmitry Bely _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
