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()
### 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 )
-else(NOT WIN32)
+ if(HAVE_MMAP)
+ target_link_libraries(mmalloc_test gras m pthread )
+ endif()
+else()
target_link_libraries(log_large_test gras)
target_link_libraries(parallel_log_crashtest gras)
- target_link_libraries(mmalloc_test gras)
-endif(NOT WIN32)
+ if(HAVE_MMAP)
+ target_link_libraries(mmalloc_test gras)
+ endif()
+endif()
set(tesh_files
${tesh_files}