From 5f83a4b2ccadf7c4b55a8d1361ae7e03501c4775 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 11 Jan 2016 02:22:02 -0500 Subject: [PATCH] look for boost with lowercase component name --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b84b707b..660494af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,10 +191,11 @@ if (USE_PYTHON) endif( PYTHON_VERSION STREQUAL "3") set(Boost_FIND_QUIETLY ON) - foreach( component IN ITEMS PYTHON${PYTHON_VERSION_MAJOR} PYTHON-PY${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} PYTHON) + foreach( component IN ITEMS python${PYTHON_VERSION_MAJOR} python-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} python) + string(TOUPPER ${component} component_upper) if(NOT Boost_LIBRARIES) find_package(Boost COMPONENTS ${component}) - set(BOOST_PYTHON_LIB ${Boost_${component}_LIBRARY_RELEASE}) + set(BOOST_PYTHON_LIB ${Boost_${component_upper}_LIBRARY_RELEASE}) endif(NOT Boost_LIBRARIES) endforeach()