[evolution-data-server/gnome-3-28] Correct find_program() for python with multiple names
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-28] Correct find_program() for python with multiple names
- Date: Fri, 1 Jun 2018 07:23:37 +0000 (UTC)
commit e1da342ff72aa660374d95408b7fd6e867e4d9cc
Author: Milan Crha <mcrha redhat com>
Date: Fri Jun 1 09:25:07 2018 +0200
Correct find_program() for python with multiple names
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]