From 36c7caffb6987f54e95f3966cb478d99935bde9b Mon Sep 17 00:00:00 2001 From: Dzhoshkun Ismail Shakir Date: Tue, 9 Apr 2019 14:07:04 +0100 Subject: [PATCH] Issue #81: using platform-specific suffix for discovering boost_python and boost_numpy --- src/cmake/boost.python/CMakeLists.txt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/cmake/boost.python/CMakeLists.txt b/src/cmake/boost.python/CMakeLists.txt index b07a07d6..96849467 100644 --- a/src/cmake/boost.python/CMakeLists.txt +++ b/src/cmake/boost.python/CMakeLists.txt @@ -10,9 +10,22 @@ if(NOT PYTHONLIBS_VERSION_STRING) endif() endif() if(PYTHONLIBS_VERSION_STRING MATCHES ^3\.*) - SET(GG_BOOST_PYTHON_SUFFIX 3) + if(UNIX) + SET(GG_BOOST_PYTHON_SUFFIX 3) + elseif(WIN32) + if(PYTHONLIBS_VERSION_STRING MATCHES ^3\.7\.*) + SET(GG_BOOST_PYTHON_SUFFIX 37) + else() + MESSAGE(FATAL_ERROR + "Found Python version ${PYTHONLIBS_VERSION_STRING} (on Windows only 3.7 is experimentally supported)") + endif() + endif() elseif(PYTHONLIBS_VERSION_STRING MATCHES ^2\.7\.*) - SET(GG_BOOST_PYTHON_SUFFIX "") + if(UNIX) + SET(GG_BOOST_PYTHON_SUFFIX "") + elseif(WIN32) + SET(GG_BOOST_PYTHON_SUFFIX 27) + endif() else() MESSAGE(FATAL_ERROR "Found unsupported Python version ${PYTHONLIBS_VERSION_STRING}") endif()