From 12ac7f16d3091ede9efeefdb56ca495813637818 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Thu, 11 Aug 2022 10:30:59 +0200 Subject: [PATCH] CMake: fix for python 2 and python include dirs --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c8a30ab..da31b884 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,9 +217,10 @@ modernize_target_link_libraries( SCOPE PUBLIC TARGETS - Python3::NumPy + Python${PYTHON_VERSION_MAJOR}::NumPy INCLUDE_DIRS - ${NUMPY_INCLUDE_DIRS}) + ${NUMPY_INCLUDE_DIRS} + ${PYTHON_INCLUDE_DIR}) target_include_directories(${PROJECT_NAME} SYSTEM PRIVATE ${PYTHON_INCLUDE_DIRS}) -- GitLab