Update macos build instructions:

Added workaround for include path order anomaly with Xcode (discovered
while testing the xcode build instructions)
This commit is contained in:
Mike Ellery
2018-01-19 09:05:02 -08:00
committed by seelabs
parent a8481e369d
commit 5e4cb78208
3 changed files with 212 additions and 184 deletions

View File

@@ -357,7 +357,12 @@ macro(use_boost)
if(NOT Boost_FOUND)
message(WARNING "Boost directory found, but not all components. May not be able to build.")
endif()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
if (is_xcode)
include_directories(BEFORE ${Boost_INCLUDE_DIRS})
append_flags(CMAKE_CXX_FLAGS --system-header-prefix="boost/")
else()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
endif()
link_directories(${Boost_LIBRARY_DIRS})
else()
message(FATAL_ERROR "Boost not found")