From 3aa09738c26635a84ed2e8c38ec5d642bb00b5a2 Mon Sep 17 00:00:00 2001 From: Victor Popov Date: Mon, 19 Oct 2020 12:25:26 +0300 Subject: [PATCH] [pybindings] fix incorrect PYTHON_INCLUDE_DIRS cmake variable PYTHON_INCLUDE_DIRS means possible python paths. PYTHON_INCLUDE_DIR means exact externally specified python path, which we pass from setup.py. --- cmake/BundledBoost.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/BundledBoost.cmake b/cmake/BundledBoost.cmake index 885534a40d..e08b284a0c 100644 --- a/cmake/BundledBoost.cmake +++ b/cmake/BundledBoost.cmake @@ -52,7 +52,7 @@ function(setup_bundled_boost_with_python) find_package(Boost ${BOOST_VERSION} EXACT REQUIRED COMPONENTS ${BOOST_PYTHON_LIBNAME}) find_package(PythonInterp ${PYTHON_VERSION} REQUIRED) - include_directories(${PYTHON_INCLUDE_DIRS}) + include_directories(${PYTHON_INCLUDE_DIR}) include_directories(SYSTEM ${Boost_INCLUDE_DIRS})