Merge pull request #12385 from dlan17/master

cmake: explictly call find_package(PythonInterp) first to fix build err

Reviewed-by: Ali Maredia <amaredia@redhat.com>
This commit is contained in:
Ali Maredia 2017-01-03 21:55:27 +05:30 committed by GitHub
commit 209c0a6cbe

View File

@ -352,6 +352,7 @@ option(WITH_CEPHFS "CephFS is enabled" ON)
option(WITH_MGR "ceph-mgr is enabled" ON)
if(WITH_MGR)
set(Python_ADDITIONAL_VERSIONS 2.7)
find_package(PythonInterp 2.7 REQUIRED)
find_package(PythonLibs 2.7 REQUIRED)
# Boost dependency check deferred to Boost section
endif(WITH_MGR)