CMake forces rc.exe resource compiler option.
newest rc.exe (resource compiler) doesn't supports /nologo option. only emits "RC : fatal error RC1106: invalid option: -ologo"
I also tried to set CMAKE_VERBOSE_MAKEFILE option true. still doesn't work. it still emits error.
//RC compiler
CMAKE_RC_COMPILER:FILEPATH=C:/Program Files (x86)/Windows Kits/10/bin/x86/rc.exe
//Flags for Windows Resource Compiler.
CMAKE_RC_FLAGS:STRING=/DWIN32
//Flags for Windows Resource Compiler during debug builds.
CMAKE_RC_FLAGS_DEBUG:STRING=/D_DEBUG
//Flags for Windows Resource Compiler during release builds for
// minimum size.
CMAKE_RC_FLAGS_MINSIZEREL:STRING=
//Flags for Windows Resource Compiler during release builds.
CMAKE_RC_FLAGS_RELEASE:STRING=
//Flags for Windows Resource Compiler during release builds with
// debug info.
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=
this is my CMakeCache.txt cache for resource compiler