Commit ad9f2ca3 authored by Ghislain MARY's avatar Ghislain MARY

Fix CMake warnings.

parent 73b95f09
......@@ -160,9 +160,9 @@ endif()
add_definitions(-DHAVE_CONFIG_H)
if(NOT MSVC)
add_definitions(-Wall -Wno-error=unknown-pragmas)
if("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
add_definitions(-Werror -Wno-error=unknown-warning-option -Qunused-arguments -Wno-tautological-compare)
elseif("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
add_definitions(-Werror -Wno-error=pragmas)
endif()
endif()
......@@ -179,7 +179,7 @@ if(WIN32)
-DBELLESIP_INTERNAL_EXPORTS
)
endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone")
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsPhone")
add_definitions(
-DHAVE_COMPILER_TLS
-DUSE_FIXED_NAMESERVERS
......
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