summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2018-06-01 09:25:07 +0200
committerMilan Crha <mcrha@redhat.com>2018-06-01 09:25:07 +0200
commite1da342ff72aa660374d95408b7fd6e867e4d9cc (patch)
tree06ae70366f229da9f585a331642e3834106e2d88 /CMakeLists.txt
parentf9b9e51b113270b6fee6caba0425c91eb35a71ad (diff)
downloadevolution-data-server-e1da342ff72aa660374d95408b7fd6e867e4d9cc.tar.gz
Correct find_program() for python with multiple names
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 732d6691b..a1b2f1b7e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -297,7 +297,7 @@ if(NOT PERL)
message(FATAL_ERROR "You need perl to build ${PROJECT_NAME}")
endif(NOT PERL)
-find_program(PYTHON python3 python2 python)
+find_program(PYTHON NAMES python3 python2 python)
if(NOT PYTHON)
message(FATAL_ERROR "You need python to build ${PROJECT_NAME}")
endif(NOT PYTHON)