From 3a48b0e1d0a3ac40d1e34c4957040486b1d3191a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 21 Oct 2022 01:01:03 +0200 Subject: cmake crap --- CMakeLists.txt | 1 + external/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) 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() -- cgit v1.2.3