Bug in CSharp support for compiler switch /win32icon
Hi,
Bug or feature?
# The compiler parameter is '/win32icon:', but the ':' will be pasted into the project file?!
target_compile_options(${TARGET} PRIVATE "/win32icon${CMAKE_SOURCE_DIR}/pathToIcon/icon.ico")
# results in
<ApplicationIcon>pathToIcon/icon.ico</ApplicationIcon>
target_compile_options(${TARGET} PRIVATE "/win32icon:${CMAKE_SOURCE_DIR}/pathToIcon/icon.ico")
# results in
<ApplicationIcon>:pathToIcon/icon.ico</ApplicationIcon>
Use version of CMake is 3.10.2. I tried with other (newer) versions but then cmake crashes (see #18485 (closed)) Regards,
Stefan