Hi Surya.
Generator expressions are not supported universally in CMake; only some
properties support them, and they are all documented as doing so.
WIN32_EXECUTABLE does not support genexes.
As for a workaround, you could create two executable targets, one which
would only be built in Release and
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 $)
The generator expression doesn't seem to be working as I see
/SUBSYST