summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2019-12-03 22:34:24 +0000
committerJohn Wiegley <johnw@newartisans.com>2019-12-05 15:06:44 +0100
commit85f94ee522d9df3d22fc39894dffa2203ea5918b (patch)
treef3ec5d13ef05d2e696ce1bade85c78d8db568ccc /CMakeLists.txt
parent6d4cd58cd4b1b2f3906889009da7b71931645e93 (diff)
downloadfork-ledger-85f94ee522d9df3d22fc39894dffa2203ea5918b.tar.gz
fork-ledger-85f94ee522d9df3d22fc39894dffa2203ea5918b.tar.bz2
fork-ledger-85f94ee522d9df3d22fc39894dffa2203ea5918b.zip
Enable py2 & py3 builds
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
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)