From 3e81a75b0c10a8f55024c2c293f5c2617afaaa12 Mon Sep 17 00:00:00 2001 From: Roberto Di Remigio Date: Fri, 9 Mar 2018 18:59:20 +0100 Subject: [PATCH] Do not blanket-set include dirs and link libs Not all targets in the project necessarily depend on `Python.h` and `libpython`. --- modules/python_libs.cmake | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/python_libs.cmake b/modules/python_libs.cmake index 3f68627..9488be6 100644 --- a/modules/python_libs.cmake +++ b/modules/python_libs.cmake @@ -84,6 +84,3 @@ endif() # Hook-up script variables to cache variables set(PYTHON_LIBRARIES ${PYTHON_LIBRARY}) set(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIR}) - -include_directories(SYSTEM ${PYTHON_INCLUDE_DIRS}) -link_directories(${PYTHON_LIBRARIES})