From e1e68ef6f1ab1983023f6da5f92b4f1252b9c675 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 14 Nov 2022 14:05:30 +0100 Subject: cmake: disable rtti also on msvc --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30fa6cc5..732930e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,8 @@ endif() if(NOT MSVC) add_compile_options(-fno-rtti) +else() + add_compile_options(-GR-) endif() if(NOT APPLE AND NOT WIN32) -- cgit v1.2.3