From 3ccd06f6ba0c23e80d5e7d2b1796693cd6004baa Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Tue, 17 Apr 2018 05:42:19 -0700 Subject: mpm: update cmake to find the correct python3 We need to set it before including UHDPython.cmake where PythonInterp is set without version requirement. Reviewed-by: Martin Braun --- mpm/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mpm/CMakeLists.txt b/mpm/CMakeLists.txt index 85f1dd49b..8129f3eff 100644 --- a/mpm/CMakeLists.txt +++ b/mpm/CMakeLists.txt @@ -18,6 +18,12 @@ ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) LIST(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules) SET(UHD_HOST_ROOT ${CMAKE_SOURCE_DIR}/../host) +######################################################################## +# Setup Python API +######################################################################## +SET(PYTHON_ADDITIONAL_VERSIONS 3.4 3.5) +FIND_PACKAGE(PythonInterp 3 REQUIRED) +FIND_PACKAGE(PythonLibs 3 REQUIRED) # Now, we can also include CMake modules from UHD: LIST(INSERT CMAKE_MODULE_PATH 0 ${UHD_HOST_ROOT}/cmake/Modules) @@ -91,12 +97,6 @@ MESSAGE(STATUS "Boost include directories: ${Boost_INCLUDE_DIRS}") MESSAGE(STATUS "Boost library directories: ${Boost_LIBRARY_DIRS}") MESSAGE(STATUS "Boost libraries: ${Boost_LIBRARIES}") -######################################################################## -# Setup Python API -######################################################################## -SET(PYTHON_ADDITIONAL_VERSIONS 3.4 3.5) -FIND_PACKAGE(PythonInterp 3) -FIND_PACKAGE(PythonLibs 3) ######################################################################## # Install Dirs -- cgit v1.2.3