Browse Source

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 1 year ago
parent
commit
0b79d84e13
1 changed files with 0 additions and 3 deletions
  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")
 	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(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /GR-")