Skip to content

Commit

Permalink
now findplumed uses plumed--no-mpi
Browse files Browse the repository at this point in the history
  • Loading branch information
Iximiel committed Oct 21, 2024
1 parent cd5bd13 commit 34aeec9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/pycv/FindPlumed.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if(NOT Plumed_FOUND)
message(STATUS "plumed not found via pkgconfig, trying executable")

execute_process(
COMMAND plumed info --include-dir
COMMAND plumed --no-mpi info --include-dir
RESULT_VARIABLE PLUMED_EXECUTABLE
OUTPUT_QUIET ERROR_QUIET)
if(PLUMED_EXECUTABLE EQUAL 0)
Expand All @@ -34,15 +34,15 @@ if(NOT Plumed_FOUND)

message(STATUS "Configuring plumed from executable")
execute_process(
COMMAND plumed info --include-dir
COMMAND plumed --no-mpi info --include-dir
OUTPUT_VARIABLE Plumed_INCLUDEDIR
OUTPUT_STRIP_TRAILING_WHITESPACE)

set(Plumed_INCLUDEDIR
${Plumed_INCLUDEDIR}
CACHE INTERNAL "plumed include dir")
execute_process(
COMMAND plumed info --configuration
COMMAND plumed --no-mpi info --configuration
OUTPUT_VARIABLE Plumed_CONFIG
OUTPUT_STRIP_TRAILING_WHITESPACE)

Expand Down Expand Up @@ -70,7 +70,7 @@ if(NOT Plumed_FOUND)
${Plumed_CPP_FLAGS}
CACHE INTERNAL "plumed Definitions flags")

execute_process(COMMAND plumed config -q has mpi
execute_process(COMMAND plumed --no-mpi config -q has mpi
RESULT_VARIABLE Plumed_WITH_MPI)
if(Plumed_WITH_MPI EQUAL 0)
set(Plumed_HAS_MPI
Expand Down

0 comments on commit 34aeec9

Please sign in to comment.