Skip to content

Commit

Permalink
fix wrong python version in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
natj committed Jan 30, 2023
1 parent 786cb49 commit fa1d04c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}" )
Expand Down
2 changes: 1 addition & 1 deletion archs/rusty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fa1d04c

Please sign in to comment.