Unverified Commit 9b0213f1 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

small CMake tweaks from progguide branch

parent daae6ea9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -625,6 +625,8 @@ install(
###############################################################################
if(BUILD_SHARED_LIBS)
  if(CMAKE_VERSION VERSION_LESS 3.12)
    # adjust so we find Python 3 versions before Python 2 on old systems with old CMake
    set(Python_ADDITIONAL_VERSIONS 3.8 3.7 3.6 3.5)
    find_package(PythonInterp) # Deprecated since version 3.12
    if(PYTHONINTERP_FOUND)
        set(Python_EXECUTABLE ${PYTHON_EXECUTABLE})
@@ -780,3 +782,6 @@ if(PKG_KSPACE)
    endif()
  endif()
endif()
if(BUILD_DOC)
  message(STATUS "<<< Building HTML Manual >>>")
endif()