Skip to content

Commit

Permalink
cmake: suppress MSCV warning about inheritance via dominance
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed May 27, 2024
1 parent 4d67442 commit 251095b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1000,8 +1000,8 @@ if (MSVC)
set(CMAKE_CXX_FLAGS_RELEASE "/O2 /MD")
set(CMAKE_CXX_FLAGS_MINSIZEREL "/O1 /MD")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /wd4267 /Zc:preprocessor")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /wd4267 /Zc:preprocessor")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /wd4267 /wd4250 /Zc:preprocessor")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3 /wd4267 /wd4250 /Zc:preprocessor")
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fmessage-length=0")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
Expand Down

0 comments on commit 251095b

Please sign in to comment.