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&#39;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 &quot;$(Config)&quot; -P &quot;${my_custom_script}&quot;<br>  )<br><br>Thanks,<br>James<br>