1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/science/fleur/files/patch-cmake_tests_test__MPI.cmake
Yuri Victorovich 5f341a2ffb Change 20 ports from net/mpich2 to net/mpich
mpich2 is the obsolete version 2.x, mpich is at the current version 3.x

Ports:
math/scalapack science/nwchem science/quantum-espresso science/qmcpack science/madness
science/qbox science/openmx science/jdftx science/fleur science/libgridxc
science/mdynamix science/lm science/dftbplus science/py-gpaw devel/ga
math/elpa net/charm science/gromacs math/pari math/arpack-ng-mpich
2018-09-22 16:36:38 +00:00

18 lines
652 B
CMake

--- cmake/tests/test_MPI.cmake.orig 2018-07-03 14:37:33 UTC
+++ cmake/tests/test_MPI.cmake
@@ -1,12 +1,12 @@
#Check if we can compile with MPI
try_compile(FLEUR_USE_MPI ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_MPI.f90
-LINK_LIBRARIES ${FLEUR_LIBRARIES}
+LINK_LIBRARIES ${FLEUR_LIBRARIES} -lmpich -lmpifort
)
message("MPI Library found:${FLEUR_USE_MPI}")
if (DEFINED ENV{FLEUR_USE_MPI})
- if (ENV{FLEUR_USE_MPI})
+ if ($ENV{FLEUR_USE_MPI})
if (NOT FLEUR_USE_MPI)
message(FATAL_ERROR "You asked for MPI but cmake couldn't find it. Please check your Fortran compiler settings")
endif()