With Cmake-3.11.1 and Visual Studio 2017 generator, I'm trying to set WIN32_EXECUTABLE property on executable only for release mode with generator expression like this
set_target_properties(target PROPERTIES WIN32_EXECUTABLE $<CONFIG:Release>) The generator expression doesn't seem to be working as I see /SUBSYSTEM:CONSOLE link flag for both Debug and Release configurations. set_target_properties(target PROPERTIES WIN32_EXECUTABLE 1) is working though. Please help. Thanks, Surya
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake