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?<br><br>I want something like this:<br><br>add_custom_command(${OUTPUT_FILE}<br>
COMMAND ${CMAKE_COMMAND} ARGS "$(Config)" -P "${my_custom_script}"<br> )<br><br>Thanks,<br>James<br>