From fa1d04cfcfd5ba149d53150df7de49bfc0fcca68 Mon Sep 17 00:00:00 2001 From: natj Date: Mon, 30 Jan 2023 14:03:40 -0500 Subject: [PATCH] fix wrong python version in cmake --- CMakeLists.txt | 3 +++ archs/rusty.sh | 2 +- docs/installation.rst | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dbbbf8c7..51aed1a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) ################################################## # dependencies +# python +FIND_PACKAGE(Python3) + #FIND_PACKAGE (EIGEN3 REQUIRED NO_MODULE) #if(APPLE) # INCLUDE_DIRECTORIES (SYSTEM "$ENV{EIGEN3_INCLUDE_DIR}" ) diff --git a/archs/rusty.sh b/archs/rusty.sh index 98dff864..9838122e 100644 --- a/archs/rusty.sh +++ b/archs/rusty.sh @@ -27,7 +27,7 @@ export CXX=mpic++ export CC=mpicc # python for CMAKE -export PYTHON_EXECUTABLE=python +export PYTHON_EXECUTABLE=python3 #prevent lockfiles export HDF5_USE_FILE_LOCKING=FALSE diff --git a/docs/installation.rst b/docs/installation.rst index e796a315..187a0d29 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -167,7 +167,7 @@ Next we can proceed to compiling. Out-of-source builds are recommended so inside mkdir build cd build - cmake .. + cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) And make sure to check that `CMake` finishes successfully. After that, you are ready to compile the framework with