We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8c758a commit 3ae449aCopy full SHA for 3ae449a
1 file changed
CMakeLists.txt
@@ -50,6 +50,13 @@ set_target_properties(FreeImage FreeImageLib LibJPEG LibJXR LibOpenJPEG LibPNG L
50
# Do not build static library
51
set_target_properties(FreeImageLib PROPERTIES EXCLUDE_FROM_ALL ON)
52
53
+# Remove /permissive- for OpenEXR and FreeImage
54
+if(MSVC)
55
+ target_compile_options(OpenEXR PRIVATE /permissive)
56
+ target_compile_options(FreeImage PRIVATE /permissive)
57
+ target_compile_options(FreeImageLib PRIVATE /permissive) # we don't need the static library, but just in case someone does build it
58
+endif(MSVC)
59
+
60
# -----------------------------------------------------------------------------
61
# Source files
62
0 commit comments