diff --git a/test/fc_mpi/src/CMakeLists.txt b/test/fc_mpi/src/CMakeLists.txt index 9de80b7..1d44328 100644 --- a/test/fc_mpi/src/CMakeLists.txt +++ b/test/fc_mpi/src/CMakeLists.txt @@ -1,10 +1,6 @@ if(MPI_FOUND) add_executable(example example.F90) - if(CMAKE_SYSTEM_NAME MATCHES "Windows") - # respect paths in appveyor.yml - target_link_libraries(example "C:/software/msmpi/libmsmpi64.a") - endif() + target_link_libraries(example ${MPI_LIBRARIES}) else() - message(FATAL_ERROR "MPI not found!") + message(FATAL_ERROR "MPI not found") endif() -