summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-14 13:59:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-14 13:59:25 +0100
commita090707731ad989bd2e928487af7a0b40ee0aa6f (patch)
tree3b18b9b2ca1bbd1b1ce713e42556f662fd0ea9ef
parentb807a0c2667e1ffa7117a6286157195c1cd762aa (diff)
cmake: set conformant __cplusplus on msvc
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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