diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index bef185df26..ec1205c8ff 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -562,7 +562,12 @@ if(PKG_USER-PLUMED) URL https://github.com/plumed/plumed2/releases/download/v2.4.4/plumed-src-2.4.4.tgz URL_MD5 71ed465bdc7c2059e282dbda8d564e71 BUILD_IN_SOURCE 1 - CONFIGURE_COMMAND /configure --prefix= ${CONFIGURE_REQUEST_PIC}) + CONFIGURE_COMMAND /configure --prefix= + ${CONFIGURE_REQUEST_PIC} + --enable-modules=all + CXX=${CMAKE_MPI_CXX_COMPILER} + CC=${CMAKE_MPI_C_COMPILER} + ) ExternalProject_get_property(plumed_build INSTALL_DIR) set(PLUMED_INSTALL_DIR ${INSTALL_DIR}) list(APPEND LAMMPS_DEPS plumed_build) diff --git a/lib/plumed/Install.py b/lib/plumed/Install.py index f2b949e21d..30cd9a993b 100644 --- a/lib/plumed/Install.py +++ b/lib/plumed/Install.py @@ -98,7 +98,7 @@ if buildflag: # build plumed print("Building plumed ...") n_cpus = get_cpus() - cmd = 'cd %s/plumed-%s; ./configure --prefix=%s --enable-static-patch ; make -j%d ; make install' % (homepath,version,homedir,n_cpus) + cmd = 'cd %s/plumed-%s; ./configure --prefix=%s --enable-modules=all --enable-static-patch ; make -j%d ; make install' % (homepath,version,homedir,n_cpus) try: txt = subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True) print(txt.decode('UTF-8'))