From 57dbe12915ffd5a188531f9335c6f44fd07b3ba1 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sun, 10 Sep 2023 07:42:05 +0100 Subject: [PATCH] Remove Debug /O2 for MSVC Fixes: '/RTC1' and '/O2' command-line options are incompatible --- Source/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index f83fe5e42..815681362 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -180,8 +180,6 @@ set(_optimize_in_debug_srcs utils/pcx_to_clx.cpp) if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" AND CMAKE_BUILD_TYPE STREQUAL "Debug") set_source_files_properties(${_optimize_in_debug_srcs} PROPERTIES COMPILE_OPTIONS "-O2") -elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - set_source_files_properties(${_optimize_in_debug_srcs} PROPERTIES COMPILE_OPTIONS "$<$:/O2>") endif() if(SUPPORTS_MPQ)