Permalink
Browse files

Add MSVC warning 5038 (Wreorder equivalent) to CMakeLists

  • Loading branch information...
horenmar committed Nov 5, 2018
1 parent c51f2ed commit eccbffec0f6d936f7d708761581e05912583a98a
Showing with 1 addition and 1 deletion.
  1. +1 −1 projects/CMakeLists.txt
View
@@ -303,7 +303,7 @@ if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
endif()
if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
STRING(REGEX REPLACE "/W[0-9]" "/W4" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # override default warning level
target_compile_options( SelfTest PRIVATE /w44265 /w44061 /w44062 )
target_compile_options( SelfTest PRIVATE /w44265 /w44061 /w44062 /w45038 )
if (CATCH_ENABLE_WERROR)
target_compile_options( SelfTest PRIVATE /WX)
endif()

0 comments on commit eccbffe

Please sign in to comment.