Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions share/cmake/utils/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ endif()

if(USE_MSVC)

# Keep mutex initialization compatible with older MSVC runtimes in host applications.
# See https://github.com/AcademySoftwareFoundation/OpenImageIO/issues/4641
add_compile_definitions(_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)

set(PLATFORM_COMPILE_OPTIONS "${PLATFORM_COMPILE_OPTIONS};/DUSE_MSVC")

# /we4062 Enables warning in switch when an enumeration value is not explicitly handled.
Expand Down
Loading