mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Quiet protobuf warning in XCode build
This commit is contained in:
committed by
Nikolaos D. Bougalis
parent
d65e208a99
commit
4bc300e251
@@ -372,7 +372,9 @@ macro(use_boost)
|
|||||||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
|
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
link_directories(${Boost_LIBRARY_DIRS})
|
if(MSVC)
|
||||||
|
link_directories(${Boost_LIBRARY_DIRS})
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Boost not found")
|
message(FATAL_ERROR "Boost not found")
|
||||||
endif()
|
endif()
|
||||||
@@ -523,6 +525,11 @@ macro(use_protobuf)
|
|||||||
else()
|
else()
|
||||||
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
include_directories(${PROTOBUF_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (is_xcode)
|
||||||
|
append_flags(CMAKE_CXX_FLAGS --system-header-prefix="google/protobuf")
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user