Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
avoid compiling too many times mtest files from mpich testsuite, just use it as a...
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / comm / CMakeLists.txt
index 80bbfe2..1b02983 100644 (file)
@@ -1,6 +1,6 @@
 cmake_minimum_required(VERSION 2.6)
 
-if(enable_smpi AND SMPI_F2C)
+if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_F2C)
   if(WIN32)
     set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
   else()
@@ -12,11 +12,11 @@ if(enable_smpi AND SMPI_F2C)
   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
 
- # add_executable(commerrf commerrf.f ../util/mtestf.f)
-  add_executable(commnamef commnamef.f ../util/mtestf.f)
+ # add_executable(commerrf commerrf.f)
+  add_executable(commnamef commnamef.f)
 
- # target_link_libraries(commerrf  simgrid)
-  target_link_libraries(commnamef  simgrid)
+ # target_link_libraries(commerrf simgrid mtest_f77)
+  target_link_libraries(commnamef simgrid mtest_f77)
 
 endif()