cmake: set isystem flag for older cmake

This commit is contained in:
Matthew Barr
2017-08-10 15:45:42 +10:00
parent 96f57a9c2e
commit b259283d6b
3 changed files with 9 additions and 19 deletions

View File

@@ -4,12 +4,7 @@ if (NOT SQLITE3_FOUND)
return()
endif()
if (NOT XCODE)
include_directories(SYSTEM ${SQLITE3_INCLUDE_DIRS})
else()
# cmake doesn't think Xcode supports isystem
set(EXTRA_CXX_FLAGS "${EXTRA_CXX_FLAGS} -isystem ${SQLITE3_INCLUDE_DIRS}")
endif()
include_directories(SYSTEM ${SQLITE3_INCLUDE_DIRS})
# BSD has the _np funcs in a _np header
CHECK_INCLUDE_FILE_CXX(pthread_np.h HAVE_PTHREAD_NP_H)