aboutsummaryrefslogtreecommitdiff
path: root/ports/corrade/fixC2666.patch
blob: e6e2ffccc888cc886ac5769a291abb469fd4430d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/modules/UseCorrade.cmake b/modules/UseCorrade.cmake
index 744d5a1..129e75f 100644
--- a/modules/UseCorrade.cmake
+++ b/modules/UseCorrade.cmake
@@ -164,7 +164,10 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_SIMULATE_ID STREQUAL "
         # "dllexport and extern are incompatible on an explicit instantiation".
         # Why the error is emitted only on classes? Functions are okay with
         # dllexport extern?!
-        "/wd4910")
+        "/wd4910"
+
+        #Add the /permissive- option
+        "/permissive-")
     set(CORRADE_PEDANTIC_COMPILER_DEFINITIONS
         # Disabling warning for not using "secure-but-not-standard" STL algos
         "_CRT_SECURE_NO_WARNINGS" "_SCL_SECURE_NO_WARNINGS"