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/smpiff")
- endif()
+ set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
+ set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
add_dependencies(tests ${test})
target_link_libraries(${test} simgrid mtest_f77)
endforeach()
-
+
add_executable(c2f2cwinf EXCLUDE_FROM_ALL c2f2cwinf.f c2f2cwin.c)
+ set_property(TARGET c2f2cwinf PROPERTY INTERPROCEDURAL_OPTIMIZATION FALSE)
add_dependencies(tests c2f2cwinf)
target_link_libraries(c2f2cwinf simgrid mtest_f77)
endif()