From 676c6da1c28acc8e38bf73a8980fc572e1f41d30 Mon Sep 17 00:00:00 2001 From: Pramod Kumbhar Date: Sun, 13 Sep 2020 20:49:24 +0200 Subject: [PATCH] Set Python_ADDITIONAL_VERSIONS cmake property (#737) * Set Python_ADDITIONAL_VERSIONS cmake property - on system like Piz-Daint, set additional version property to so that CMake can prefer highest version * Set Python_ADDITIONAL_VERSIONS before including other CMake modules Co-authored-by: Pramod Kumbhar Co-authored-by: Pramod Kumbhar --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89b92ba329..55d28a7632 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,6 +108,11 @@ set(NRN_RX3D_OPT_LEVEL "${NRN_RX3D_OPT_LEVEL_DEFAULT}" CACHE STRING "Optimization level for Cython generated files (non-zero may compile slowly)") +# ============================================================================= +# Set Python additional versions earlier (especially for old CMake) +# ============================================================================= +set(Python_ADDITIONAL_VERSIONS 3 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0 2.8 2.7 2.6) + # ============================================================================= # Include cmake modules # =============================================================================