Commit b43ad50b authored by Ralf Habacker's avatar Ralf Habacker

cmake: Add msvc support for sign-compare warnings.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90089Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent b7086e05
......@@ -202,8 +202,13 @@ if(DBUS_WITH_GLIB)
endif()
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wsign-compare")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-compare")
if(MSVC)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w14018")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /w14018")
else()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wsign-compare")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-compare")
endif()
#########################################################################
# Windows CE (>= 5.0.0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment