Skip to content

Commit 10d00db

Browse files
committed
Do not use SYSTEM include Python/NumPy (cf. #68)
1 parent 5977b10 commit 10d00db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ OPTION (BUILD_UNIT_TESTS "Build the unitary tests" ON)
5050

5151
FINDPYTHON()
5252

53-
INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})
53+
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
5454
FIND_NUMPY()
55-
INCLUDE_DIRECTORIES(SYSTEM ${NUMPY_INCLUDE_DIRS})
55+
INCLUDE_DIRECTORIES(${NUMPY_INCLUDE_DIRS})
5656

5757
# ----------------------------------------------------
5858
# --- DEPENDANCIES -----------------------------------
@@ -137,8 +137,8 @@ ADD_SUBDIRECTORY(python)
137137
ADD_SUBDIRECTORY(unittest)
138138

139139
PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
140-
PKG_CONFIG_APPEND_CFLAGS("-isystem${PYTHON_INCLUDE_DIRS}")
141-
PKG_CONFIG_APPEND_CFLAGS("-isystem${NUMPY_INCLUDE_DIRS}")
140+
PKG_CONFIG_APPEND_CFLAGS("-I${PYTHON_INCLUDE_DIRS}")
141+
PKG_CONFIG_APPEND_CFLAGS("-I${NUMPY_INCLUDE_DIRS}")
142142
PKG_CONFIG_APPEND_BOOST_LIBS(${BOOST_COMPONENTS})
143143

144144
SETUP_PROJECT_FINALIZE()

0 commit comments

Comments
 (0)