From 0c2b82a965422663868fdc12595c964f9c6555ea Mon Sep 17 00:00:00 2001 From: Thomas Mijieux <thomas.mijieux@inria.fr> Date: Fri, 10 Mar 2017 10:49:32 +0100 Subject: [PATCH] Add a hint to help Cmake to find the correct python version(python2) --- modules/RulesPrecisions.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/RulesPrecisions.cmake b/modules/RulesPrecisions.cmake index 5fb8224..0b8c095 100644 --- a/modules/RulesPrecisions.cmake +++ b/modules/RulesPrecisions.cmake @@ -157,6 +157,10 @@ endif() # the target receives a -DPRECISION_p in its cflags. # include(ParseArguments) + +# Add a hint to help Cmake to find the correct python version: +# (see https://cmake.org/cmake/help/v3.0/module/FindPythonInterp.html) +set(Python_ADDITIONAL_VERSIONS 2) find_package(PythonInterp REQUIRED) MACRO(precisions_rules_py) -- GitLab