Skip to content

Commit

Permalink
Downgrade minimum cmake to 3.17
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed May 6, 2024
1 parent 10ca617 commit 06f9346
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
############################################################################################
# FCKIT

cmake_minimum_required( VERSION 3.20 FATAL_ERROR )
cmake_minimum_required( VERSION 3.17 FATAL_ERROR )

find_package( ecbuild 3.4 REQUIRED HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild )

Expand Down Expand Up @@ -114,7 +114,7 @@ endif()
set( FCKIT_LIBRARIES fckit )

################################################################################################
# find and install python packages
# install python packages
include( fckit_install_venv )

# install python venv with rumael.yaml and fypp
Expand Down
4 changes: 2 additions & 2 deletions cmake/fckit_install_venv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ macro( fckit_install_venv )
set( Python3_FIND_VIRTUALENV STANDARD )
find_package( Python3 COMPONENTS Interpreter REQUIRED )

# Create a loki virtualenv
# Create a virtualenv
set( VENV_PATH ${CMAKE_CURRENT_BINARY_DIR}/venv )
message( STATUS "Create Python virtual environment ${VENV_PATH}" )
execute_process( COMMAND ${Python3_EXECUTABLE} -m venv --copies "${VENV_PATH}" )
Expand Down Expand Up @@ -60,7 +60,7 @@ macro( fckit_install_venv )
set( FCKIT_VENV_EXE ${Python3_EXECUTABLE} )

# compute relative path to venv to aid with installation
cmake_path( RELATIVE_PATH FCKIT_VENV_EXE BASE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} OUTPUT_VARIABLE rel_venv_exe_path )
string(REPLACE "${CMAKE_CURRENT_BINARY_DIR}/" "" rel_venv_exe_path ${FCKIT_VENV_EXE})

set( FYPP ${CMAKE_CURRENT_SOURCE_DIR}/tools/fckit-eval.sh ${FCKIT_VENV_EXE} -m fypp )

Expand Down

0 comments on commit 06f9346

Please sign in to comment.