adapt fc_mpi test for MS Windows by utilizing ms-mpi package
- 2 msmpi files are modified according to the tutorial
This commit is contained in:
@ -8,11 +8,11 @@ source: ../../../modules/fc.cmake
|
||||
[mpi]
|
||||
source: ../../../modules/mpi.cmake
|
||||
|
||||
[int64]
|
||||
source: ../../../modules/int64.cmake
|
||||
|
||||
[default_build_paths]
|
||||
source: ../../../modules/default_build_paths.cmake
|
||||
|
||||
[src]
|
||||
source: ../../../modules/src.cmake
|
||||
|
||||
[definitions]
|
||||
source: ../../../modules/definitions.cmake
|
||||
|
@ -1,5 +1,9 @@
|
||||
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()
|
||||
else()
|
||||
message(FATAL "MPI not found!")
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user