From f83faf28b3424ba60c3bdc40d408011c9c619c8a Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 11 Apr 2019 09:10:53 -0700 Subject: cmake: Remove ENABLE_PYTHON3 flag and simplify Python detection - Makes use of more modern find_package(Python2/3) if available - Moves almost all Python-related code to UHDPython.cmake - ENABLE_PYTHON3 is no longer necessary --- host/docs/build.dox.in | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'host/docs/build.dox.in') diff --git a/host/docs/build.dox.in b/host/docs/build.dox.in index 9e4f91ce4..1d9d9a0fe 100644 --- a/host/docs/build.dox.in +++ b/host/docs/build.dox.in @@ -220,10 +220,8 @@ extensions: \subsection cmake_win Generate the project with CMake -- Enable Python3 option in the CMake list if the version of installed Python is >=3, otherwise go to the next step. - - Go to the source code: `/host`. - - Open 'CMakeLists.txt'. - - Find 'ENABLE_PYTHON3' option and set it to 'ON', e.g. 'option(ENABLE_PYTHON3 "Enable Python 3. Default is Python 2" ON)'. +- Make sure the version of Python that CMake detects matches the version you + want it to be (check the PYTHON_VERSION variable) - Open the CMake GUI. - Set the path to the source code: `/host`. - Set the path to the build directory (this may require creating the folder \build\): `/host/build`. -- cgit v1.2.3