Commit 84887d30 authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: use -isystem for Python/numpy include directories

parent 0c07836f
...@@ -3,11 +3,11 @@ set(PYTHON_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../") ...@@ -3,11 +3,11 @@ set(PYTHON_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../")
ocv_add_module(${MODULE_NAME} BINDINGS PRIVATE_REQUIRED opencv_python_bindings_generator) ocv_add_module(${MODULE_NAME} BINDINGS PRIVATE_REQUIRED opencv_python_bindings_generator)
ocv_module_include_directories( include_directories(SYSTEM
"${${PYTHON}_INCLUDE_PATH}" "${${PYTHON}_INCLUDE_PATH}"
)
include_directories(
${${PYTHON}_NUMPY_INCLUDE_DIRS} ${${PYTHON}_NUMPY_INCLUDE_DIRS}
)
ocv_module_include_directories(
"${PYTHON_SOURCE_DIR}/src2" "${PYTHON_SOURCE_DIR}/src2"
"${OPENCV_PYTHON_BINDINGS_DIR}" "${OPENCV_PYTHON_BINDINGS_DIR}"
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment