Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable mmalloc_test when !HAVE_MMAP, since mmalloc is not compiled in.
[simgrid.git] / teshsuite / xbt / CMakeLists.txt
index e4aa259..9c88359 100644 (file)
@@ -4,17 +4,23 @@ set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
 
 add_executable(log_large_test log_large_test.c)
 add_executable(parallel_log_crashtest parallel_log_crashtest.c)
-add_executable(mmalloc_test mmalloc_test.c)
+if(HAVE_MMAP)
+  add_executable(mmalloc_test mmalloc_test.c)
+endif(HAVE_MMAP)
 
 ### Add definitions for compile
 if(NOT WIN32)
   target_link_libraries(log_large_test gras m pthread )
   target_link_libraries(parallel_log_crashtest gras m pthread )
-  target_link_libraries(mmalloc_test gras m pthread )
+  if(HAVE_MMAP)
+    target_link_libraries(mmalloc_test gras m pthread )
+  endif(HAVE_MMAP)
 else(NOT WIN32)
   target_link_libraries(log_large_test gras)
   target_link_libraries(parallel_log_crashtest gras)
-  target_link_libraries(mmalloc_test gras)
+  if(HAVE_MMAP)
+    target_link_libraries(mmalloc_test gras)
+  endif(HAVE_MMAP)
 endif(NOT WIN32)
 
 set(tesh_files