Skip to content

Commit

Permalink
Disable MSVC conformance mode on UWP
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 16, 2023
1 parent 116bb27 commit 3b5b067
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,11 @@ if(MSVC)
# - C26812 - Prefer 'enum class' over 'enum' (Code analysis warning)
target_compile_options(Diligent-BuildSettings INTERFACE /W4 /wd4100 /wd4201 /wd4505 /wd26812 /MP ${DILIGENT_MSVC_COMPILE_OPTIONS})

# Enable conformance mode
target_compile_options(Diligent-BuildSettings INTERFACE /permissive-)
if (PLATFORM_WIN32)
# Enable conformance mode.
# Note that UWP sources don't compile in conformance mode.
target_compile_options(Diligent-BuildSettings INTERFACE /permissive-)
endif()

# In all release modes also:
# - disable w4189 - local variable is initialized but not referenced
Expand Down

0 comments on commit 3b5b067

Please sign in to comment.