We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f0cd5 commit 7fa3595Copy full SHA for 7fa3595
cmake/FindPython.cmake
@@ -146,7 +146,7 @@ ENDFUNCTION(EXEC_PYTHON_SCRIPT)
146
# Define python_and_numpy interface target
147
add_library(python_and_numpy INTERFACE)
148
target_link_libraries(python_and_numpy INTERFACE ${PYTHON_LIBRARY} "${PYTHON_EXTRA_LIBS}")
149
- target_include_directories(python_and_numpy INTERFACE ${PYTHON_INCLUDE_DIRS} ${PYTHON_NUMPY_INCLUDE_DIR})
+ target_include_directories(python_and_numpy SYSTEM INTERFACE ${PYTHON_INCLUDE_DIRS} ${PYTHON_NUMPY_INCLUDE_DIR})
150
target_compile_options(python_and_numpy INTERFACE -Wno-register) # Some version of Python.h still use register
151
152
# The C API of numpy has changed with 1.7.0, the macro is a version switch in a few files of the libs.
0 commit comments