From 572d5ee106f8e7cbba171242f9f1ef62a51f48e6 Mon Sep 17 00:00:00 2001 From: Yuanming Hu Date: Sat, 7 Jan 2017 15:11:51 +0800 Subject: [PATCH] Fixed python lib finder on Ubuntu, closed #7 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c54451e465fa..b1c57c1ef0cf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,7 @@ else () execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_config_var('LIBDIR'))" OUTPUT_VARIABLE PYTHON_LIBRARY_DIR) - find_library(PYTHON_LIBRARY NAMES python2.7 PATHS ${PYTHON_LIBRARY_DIR} NO_DEFAULT_PATH NO_SYSTEM_ENVIRONMENT_PATH) + find_library(PYTHON_LIBRARY NAMES python2.7 PATHS ${PYTHON_LIBRARY_DIR} NO_DEFAULT_PATH NO_SYSTEM_ENVIRONMENT_PATH PATH_SUFFIXES x86_64-linux-gnu) message("Python lib ${PYTHON_LIBRARY}") set(PYTHON_LIBRARIES ${PYTHON_LIBRARY}) endif ()