Commit ad9f2ca3 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix CMake warnings.

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