[CMake] Configuration environment variable for VS

James Bigler jamesbigler at gmail.com
Thu May 14 17:59:27 EDT 2009


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}"
  )

Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090514/2e295b56/attachment.htm>


More information about the CMake mailing list