Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Stop trying to build on native WIN32, it's broken anyway
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / rma / CMakeLists.txt
index 44b91b1..48f19fc 100644 (file)
@@ -1,13 +1,9 @@
 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
@@ -17,10 +13,11 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
            )
     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()