Explorar o código

cmake: Enable stricter MSVC compiler options

derrod %!s(int64=2) %!d(string=hai) anos
pai
achega
b7f6ae7d7b
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      cmake/Modules/CompilerConfig.cmake

+ 5 - 1
cmake/Modules/CompilerConfig.cmake

@@ -68,7 +68,11 @@ if(OS_WINDOWS AND MSVC)
     /D_UNICODE
     /D_CRT_SECURE_NO_WARNINGS
     /D_CRT_NONSTDC_NO_WARNINGS
-    /utf-8)
+    /utf-8
+    /permissive-
+    /Zc:__cplusplus
+    /Zc:preprocessor
+    /std:c17)
 
   add_link_options(
     "LINKER:/OPT:REF"