I have code like below: IF(MSVC) set(CMAKE_CXX_FLAGS /Ox) set(CMAKE_C_FLAGS /Ox) ENDIF(MSVC) However, the flag is ignored and CMake generates projects that use /O2. How can I fix it? -- Twoje radio