Only setting -isystem on Mac OS X
This commit is contained in:
parent
72eab8119d
commit
96e4930684
@ -123,8 +123,8 @@ endif()
|
||||
|
||||
# This is a workaround for a CMake bug with include_directories(SYSTEM ...)
|
||||
# on Mac OS X. Bug report: http://public.kitware.com/Bug/view.php?id=10837
|
||||
if (NOT MSVC)
|
||||
set( CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem " )
|
||||
if ( APPLE )
|
||||
set( CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem " )
|
||||
endif()
|
||||
|
||||
# The SYSTEM flag makes sure that -isystem[header path] is passed to the
|
||||
|
Loading…
Reference in New Issue
Block a user