less hardcoding

This commit is contained in:
Radovan Bast 2015-10-13 10:27:44 +02:00
parent 246c0cf2b2
commit bd6cbb1cbc

View File

@ -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()