From 429765ee4dbf6ea2ad654b4287fa6498bc55fa3a Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Thu, 10 Dec 2015 22:34:58 +0100 Subject: fix check for boost::python::make_setter --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a3dc3fa..7f77468e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,8 +168,10 @@ cmake_pop_check_state() if (HAVE_BOOST_PYTHON) cmake_push_check_state() -set(CMAKE_REQUIRED_INCLUDES ${CMAKE_INCLUDE_PATH} ${Boost_INCLUDE_DIRS}) -set(CMAKE_REQUIRED_LIBRARIES ${Boost_LIBRARIES} ${PROFILE_LIBS}) +set(CMAKE_REQUIRED_INCLUDES + ${CMAKE_INCLUDE_PATH} ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}) +set(CMAKE_REQUIRED_LIBRARIES + ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} ${PROFILE_LIBS}) check_cxx_source_runs(" #include -- cgit v1.2.3