mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Merge pull request #7114 from pks-gitlab/pks-msvc-different-enum-warnings
cmake: disable warnings for operands with different enum types
This commit is contained in:
@@ -13,6 +13,9 @@ if(MSVC)
|
||||
# /Gd - explicitly set cdecl calling convention
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Gd")
|
||||
|
||||
# Remove warnings about operands that use different enum types.
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd5287")
|
||||
|
||||
if(NOT (MSVC_VERSION LESS 1900))
|
||||
# /guard:cf - Enable Control Flow Guard
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /guard:cf")
|
||||
|
||||
Reference in New Issue
Block a user