Skip to content

Commit

Permalink
-Wno-sign-compare only works with GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
quietust committed May 23, 2012
1 parent 9a73ea9 commit 9855334
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion depends/protobuf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ google/protobuf/compiler/zip_writer.cc

LIST(APPEND LIBPROTOBUF_FULL_SRCS ${LIBPROTOBUF_LITE_SRCS})

SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -Wno-sign-compare")
IF(CMAKE_COMPILER_IS_GNUCC)
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -Wno-sign-compare")
ENDIF()

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
SET(PROTOBUF_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR})
Expand Down

0 comments on commit 9855334

Please sign in to comment.