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
cmake: fight against empty definitions
[simgrid.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
30b2978
..
7ab5b02
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-330,7
+330,9
@@
foreach(var
HAVE_PROCESS_VM_READV
HAVE_MMAP
HAVE_VASPRINTF)
- if(NOT DEFINED ${var})
+ if(${var})
+ set(${var} 1)
+ else()
set(${var} 0)
endif()
endforeach()