Skip to content

Commit 7ffd61d

Browse files
hodoulpmichdolan
andauthored
Adsk Contrib - Fix a bug with the Vc++ compilation flags. (#1419) (#1431)
Signed-off-by: Patrick Hodoul <[email protected]> Co-authored-by: Michael Dolan <[email protected]>
1 parent 3734922 commit 7ffd61d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

share/cmake/utils/CompilerFlags.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ if(USE_MSVC)
2222
)
2323
endif()
2424

25+
# Explicitely specify the default warning level i.e. /W3.
26+
# Note: Do not use /Wall (i.e. /W4) which adds 'informational' warnings.
27+
set(PLATFORM_COMPILE_FLAGS "${PLATFORM_COMPILE_FLAGS} /W3")
28+
2529
if(OCIO_WARNING_AS_ERROR)
2630
set(PLATFORM_COMPILE_FLAGS "${PLATFORM_COMPILE_FLAGS} /WX")
2731
endif()

0 commit comments

Comments
 (0)