Explorar o código

Removed redundant /GR trimming for MSVC builds (#1207)

With the minimum CMake version having been bumped in #1149 this is no longer needed, as CMake no longer implicitly adds `/GR` to `CMAKE_CXX_FLAGS` as of 3.20 ([CMP0117](https://cmake.org/cmake/help/latest/policy/CMP0117.html)).
Mikael Hermansson hai 1 ano
pai
achega
0b79d84e13
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      Build/CMakeLists.txt

+ 0 - 3
Build/CMakeLists.txt

@@ -126,9 +126,6 @@ if (MSVC)
 		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi")
 		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi")
 	endif()
 	endif()
 
 
-	# Remove any existing compiler flag that enables RTTI
-	string(REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
-
 	# Set compiler flag for disabling RTTI
 	# Set compiler flag for disabling RTTI
 	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR-")
 	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR-")