if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
- if(WIN32)
- set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
- else()
- set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
- set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpif90")
- endif()
+ set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
+ set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpif90")
include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
-
+
foreach(test winaccf90
# winerrf90
winfencef90 wingroupf90
)
add_executable(${test} EXCLUDE_FROM_ALL ${test}.f90)
add_dependencies(tests ${test})
- target_link_libraries(${test} simgrid mtest_f90)
+ target_link_libraries(${test} simgrid mtest_f90)
endforeach()
add_executable(c2f2cwinf90 EXCLUDE_FROM_ALL c2f2cwinf90.f90 c2f902cwin.c)
+ set_property(TARGET c2f2cwinf90 PROPERTY INTERPROCEDURAL_OPTIMIZATION FALSE)
add_dependencies(tests c2f2cwinf90)
target_link_libraries(c2f2cwinf90 simgrid mtest_f90)
endif()