Page MenuHomePhabricator

Since cmake 3.12 FindPythonLibs is deprecated
Closed, ResolvedPublic

Description

MITK requires python 3, so we should use the new FindPython3:
https://cmake.org/cmake/help/v3.12/module/FindPython3.html#module:FindPython3

Also, FindPython3 should probably be called in the associated Config.cmake
Why currently in top level CmakeLists.txt and also other places associated with the new MITK python wrapping? And why is the config file called MITK_PythonLibs_Config.cmake and now, corresponding to the variable MITK_Python_Config.cmake?

Required cmake version will be upgraded to 3.12 in T25420

Revisions and Commits

Event Timeline

kislinsk triaged this task as Wishlist priority.Nov 22 2018, 2:20 PM

If python3 is NOT found, the executable cannot be specified manually since the corresponding cache variable seems to be deleted every time find_package(Python3) is called. Cmake bug?

neher added a revision: Restricted Differential Revision.Jul 4 2019, 7:24 AM