summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-21 01:01:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-21 01:01:03 +0200
commit3a48b0e1d0a3ac40d1e34c4957040486b1d3191a (patch)
treec778f31f828c4cfec988ca22f07dbff6d4628f96
parent718346dbb91afab2d71f71683400d71bcaf6ee7c (diff)
cmake crap
-rw-r--r--CMakeLists.txt1
-rw-r--r--external/CMakeLists.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 924170f2..94e56c5e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,6 +75,7 @@ endif()
if(MSVC)
add_definitions(-D_USE_MATH_DEFINES=1)
add_compile_options(-permissive-)
+ add_compile_options(-Zc:preprocessor -Zc:inline -Zc:lambda -Zc:throwingNew)
add_compile_options(-external:W0 -external:anglebrackets)
add_compile_options(
#-wd4244 # warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
index 6cf2ad2d..e7882d18 100644
--- a/external/CMakeLists.txt
+++ b/external/CMakeLists.txt
@@ -25,6 +25,7 @@ else()
add_compile_options(
-Wno-error
-Wno-undef
+ -Wno-old-style-cast
)
endif()