Skip to content

Commit

Permalink
Fix python version discovery (#2833)
Browse files Browse the repository at this point in the history
  • Loading branch information
je-cook authored Aug 23, 2023
1 parent 0c6010e commit e96bbee
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# CMake file for Pythonic PROCESS
# Author : K. Zarebski (UKAEA)
# Date : last modified 2020-11-09
# Author : PROCESS Team (UKAEA)
# Date : last modified 2023-07-24

# Specify the minimum version for CMake
# 3.12 is required due to use of list TRANSFORM commands
CMAKE_MINIMUM_REQUIRED(VERSION 3.13)
# 3.15 for cmake policy CMP0094
CMAKE_MINIMUM_REQUIRED(VERSION 3.15)

# Set project name
PROJECT(process LANGUAGES Fortran)

cmake_policy(SET CMP0094 NEW)

# Ensure python3 interpreter is used
if(CMAKE_HOST_APPLE)
SET(CMAKE_FIND_FRAMEWORK NEVER)
set(CMAKE_MACOSX_RPATH ON)
endif()

SET(Python3_FIND_VIRTUALENV FIRST)

# Python 3.8 or greater
find_package(Python3 3.8 COMPONENTS Interpreter Development)

Expand Down

0 comments on commit e96bbee

Please sign in to comment.