Skip to content

Commit

Permalink
Set Python_ADDITIONAL_VERSIONS cmake property (#737)
Browse files Browse the repository at this point in the history
* 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 <bp000174@daint106.login.cscs.ch>
Co-authored-by: Pramod Kumbhar <bp000174@daint104.login.cscs.ch>
  • Loading branch information
3 people authored and nrnhines committed Dec 10, 2020
1 parent b2cfb1b commit 676c6da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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
# =============================================================================
Expand Down

0 comments on commit 676c6da

Please sign in to comment.