Hello,<br>Can I change my install prefix on the fly for windows build. <br><br>On Unix I can do some thing like this<br><br>IF (${CMAKE_BUILD_TYPE} STREQUAL &quot;Debug&quot;)<br>&nbsp;&nbsp;&nbsp; set_my_debug_install_prefix<br>ELSE (${CMAKE_BUILD_TYPE} STREQUAL &quot;Debug&quot;)<br>
&nbsp;&nbsp;&nbsp; set_my_release_install_prefix<br>ENDIF (${CMAKE_BUILD_TYPE} STREQUAL &quot;Debug&quot;)<br><br>I cannot do the same thing for windows as I select the build type after loading the IDE. <br><br>I want to do similar change for ADD_EXECUTABLE as well.<br>
<br>For Debug builds I want to have a console popping up to show the debug messages, and for release builds I do not want the console.<br><br>How can i change the ADD_EXECUTABLE&nbsp; call accordingly to supply extra option WIN32 based on the build type.?<br>
<br>Surya<br>