Skip to content

Commit 403fd7a

Browse files
committed
[CMake] Use "-isystem" for dependencies and remove useless lines
1 parent 0c0181b commit 403fd7a

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

CMakeLists.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,8 @@ ENDIF(WIN32)
5555
# ----------------------------------------------------
5656
# --- OPTIONS ---------------------------------------
5757
# ----------------------------------------------------
58-
OPTION (EIGEN_NUMPY_ALIGNED "Directly aligned data between Numpy and Eigen" OFF)
5958
OPTION (BUILD_UNIT_TESTS "Build the unitary tests" ON)
6059

61-
IF(EIGEN_NUMPY_ALIGNED)
62-
ADD_DEFINITIONS(-DEIGENPY_ALIGNED)
63-
ENDIF(EIGEN_NUMPY_ALIGNED)
64-
6560
# ----------------------------------------------------
6661
# --- DEPENDANCIES -----------------------------------
6762
# ----------------------------------------------------
@@ -157,13 +152,9 @@ ADD_SUBDIRECTORY(python)
157152
# ----------------------------------------------------
158153
ADD_SUBDIRECTORY(unittest)
159154

160-
IF(EIGEN_NUMPY_ALIGNED)
161-
PKG_CONFIG_APPEND_CFLAGS("-DEIGENPY_ALIGNED")
162-
ENDIF(EIGEN_NUMPY_ALIGNED)
163-
164155
PKG_CONFIG_APPEND_LIBS(${PROJECT_NAME})
165-
PKG_CONFIG_APPEND_CFLAGS("-I${PYTHON_INCLUDE_DIRS}")
166-
PKG_CONFIG_APPEND_CFLAGS("-I${NUMPY_INCLUDE_DIRS}")
156+
PKG_CONFIG_APPEND_CFLAGS("-isystem ${PYTHON_INCLUDE_DIRS}")
157+
PKG_CONFIG_APPEND_CFLAGS("-isystem ${NUMPY_INCLUDE_DIRS}")
167158
PKG_CONFIG_APPEND_BOOST_LIBS(${BOOST_COMPONENTS})
168159

169160
SETUP_PROJECT_FINALIZE()

0 commit comments

Comments
 (0)