From 85f94ee522d9df3d22fc39894dffa2203ea5918b Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Tue, 3 Dec 2019 22:34:24 +0000 Subject: Enable py2 & py3 builds --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a50089d..70c81158 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,14 +54,14 @@ endif() ######################################################################## -find_package(Python 2 COMPONENTS Interpreter) # Used for running tests +find_package(Python COMPONENTS Interpreter) # Used for running tests if (USE_PYTHON) if (NOT BUILD_LIBRARY) message(ERROR "Building the python module requires BUILD_LIBRARY=ON.") endif() - find_package(Python 2 COMPONENTS Interpreter Development) + find_package(Python COMPONENTS Interpreter Development) if (PYTHON_FOUND) set(BOOST_PYTHON "python${Python_VERSION_MAJOR}${Python_VERSION_MINOR}") set(HAVE_BOOST_PYTHON 1) -- cgit v1.2.3