From a090707731ad989bd2e928487af7a0b40ee0aa6f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 14 Nov 2022 13:59:25 +0100 Subject: cmake: set conformant __cplusplus on msvc --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3091d47b..30fa6cc5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,7 +95,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(-Zc:preprocessor -Zc:inline -Zc:lambda -Zc:throwingNew -Zc:__cplusplus) add_compile_options(-external:W0 -external:anglebrackets) add_compile_options( #-wd4244 # warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data -- cgit v1.2.3