Only setting -isystem on Mac OS X

This commit is contained in:
Strahinja Val Markovic 2013-09-07 10:50:28 -07:00
parent 72eab8119d
commit 96e4930684

View File

@ -123,8 +123,8 @@ endif()
# This is a workaround for a CMake bug with include_directories(SYSTEM ...) # 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 # on Mac OS X. Bug report: http://public.kitware.com/Bug/view.php?id=10837
if (NOT MSVC) if ( APPLE )
set( CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem " ) set( CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem " )
endif() endif()
# The SYSTEM flag makes sure that -isystem[header path] is passed to the # The SYSTEM flag makes sure that -isystem[header path] is passed to the