A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Slight reindent.
[simgrid.git]
/
teshsuite
/
xbt
/
CMakeLists.txt
diff --git
a/teshsuite/xbt/CMakeLists.txt
b/teshsuite/xbt/CMakeLists.txt
index
e4aa259
..
4f45fb5
100644
(file)
--- a/
teshsuite/xbt/CMakeLists.txt
+++ b/
teshsuite/xbt/CMakeLists.txt
@@
-1,21
+1,22
@@
cmake_minimum_required(VERSION 2.6)
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
cmake_minimum_required(VERSION 2.6)
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(NOT WIN32)
+ add_executable(log_large_test log_large_test.c)
+ add_executable(parallel_log_crashtest parallel_log_crashtest.c)
+ if(HAVE_MMAP)
+ add_executable(mmalloc_test mmalloc_test.c)
+ endif()
+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 )
### 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)
- 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 m pthread )
+ endif()
+endif()
set(tesh_files
${tesh_files}
set(tesh_files
${tesh_files}