From b502fd29d1a291b8f36bada2dd5ef1b2d5c987cb Mon Sep 17 00:00:00 2001 From: Paul Inder Date: Wed, 29 Jul 2015 00:16:04 -0600 Subject: [PATCH] specify which python-config, fixes undefined symbol I think this fixes https://github.com/belltailjp/selective_search_py/issues/2 and https://github.com/belltailjp/selective_search_py/issues/3 I had the same issue. The command `python-config`, by default, returns info for python2.7... specifying for `python3.4-config` provides the proper flags and whatnot --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c9613a..072514d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 2.8) project(selective_search) -execute_process(COMMAND python-config --cflags OUTPUT_VARIABLE PYTHON3_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) -execute_process(COMMAND python-config --ldflags OUTPUT_VARIABLE PYTHON3_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) +execute_process(COMMAND python3.4-config --cflags OUTPUT_VARIABLE PYTHON3_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) +execute_process(COMMAND python3.4-config --ldflags OUTPUT_VARIABLE PYTHON3_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) set(BOOST_LIBS "-lboost_system -lboost_python3 -lboost_numpy") set(SUPPRESS_WARNING "-Wall -Wno-unused-function -Wno-unused-variable -Wno-unused-local-typedefs")