From: Alexander Alekhin Date: Fri, 9 Feb 2018 14:10:02 +0000 (+0300) Subject: cmake: use -isystem for Python/numpy include directories X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~77^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84887d3011a710f1f13a7ad4a4cb3e3691fdff7a;p=platform%2Fupstream%2Fopencv.git cmake: use -isystem for Python/numpy include directories --- diff --git a/modules/python/common.cmake b/modules/python/common.cmake index fcccffe..65418a7 100644 --- a/modules/python/common.cmake +++ b/modules/python/common.cmake @@ -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_module_include_directories( +include_directories(SYSTEM "${${PYTHON}_INCLUDE_PATH}" -) -include_directories( ${${PYTHON}_NUMPY_INCLUDE_DIRS} +) +ocv_module_include_directories( "${PYTHON_SOURCE_DIR}/src2" "${OPENCV_PYTHON_BINDINGS_DIR}" )