From 23432d420db400292dab250fa76ac5da4dd4b97c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lassi=20H=C3=A4m=C3=A4l=C3=A4inen?= Date: Fri, 28 Sep 2018 23:44:46 +0300 Subject: [PATCH] CMake: Disable RTTI for jit.cpp on MSVC --- rpcs3/Emu/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/CMakeLists.txt b/rpcs3/Emu/CMakeLists.txt index a5ce5df1b5..6dc76990e5 100644 --- a/rpcs3/Emu/CMakeLists.txt +++ b/rpcs3/Emu/CMakeLists.txt @@ -25,7 +25,9 @@ target_link_libraries(rpcs3_emu 3rdparty::pugixml 3rdparty::gsl) -if (NOT MSVC) +if (MSVC) + set_source_files_properties("../../Utilities/JIT.cpp" PROPERTIES COMPILE_FLAGS /GR-) +else() set_source_files_properties("../../Utilities/JIT.cpp" PROPERTIES COMPILE_FLAGS -fno-rtti) endif()