From 9daab0c3070ca29e6dfbaeba7130bd3963a127f2 Mon Sep 17 00:00:00 2001
From: Matthias Markl <matthias.markl@fau.de>
Date: Tue, 10 Sep 2019 10:05:40 +0200
Subject: [PATCH] python 3.7 bugfix in CMakeLists.txt for MSVC

markl
---
 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6de20290c..5d4e3c272 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -647,7 +647,8 @@ else()
 endif()
 
 if ( WALBERLA_BUILD_WITH_PYTHON AND WALBERLA_CXX_COMPILER_IS_MSVC )
-    list( APPEND waLBerla_REQUIRED_BOOST_COMPONENTS python36 )
+    get_filename_component(PYTHON_REQUIRED_LIB ${PYTHON_LIBRARY} NAME_WE)
+    list( APPEND waLBerla_REQUIRED_BOOST_COMPONENTS ${PYTHON_REQUIRED_LIB} )
 endif()
 
 # This variable is necessary, if the CMAKE version used is not aware of a more recent boost version (keep this up to date!)
-- 
GitLab