Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use the CMake macro #cmakedefine01 in configurable files.
authorMatthieu Volat <mazhe@alkumuna.eu>
Mon, 19 Dec 2016 16:38:50 +0000 (17:38 +0100)
committerAugustin Degomme <augustin.degomme@unibas.ch>
Mon, 19 Dec 2016 17:58:47 +0000 (18:58 +0100)
commit396aba1cbeea2978b413b640014a023a9051708d
treeb609e21be58a8841cbf8c1f93437fff37c1bf196
parentb13d1727c7bcdf873ada7fa4edb27eb53a219309
Use the CMake macro #cmakedefine01 in configurable files.

cmakedefine01 allows to perform C preprocessor replacements
that define a variable to 0 or 1 when configure_file is called,
instead of (not) defining the variable (see
https://cmake.org/cmake/help/v2.8.8/cmake.html#command:configure_file
for the 2.8.8 doc).

This ease the defining of config.h variables (no foreach loops
that preset them to 0), but two requirements must be met:
 1. variable name must match in cmake and config.h.in
 2. no comment on the macro line
CMakeLists.txt
include/simgrid_config.h.in
tools/cmake/Modules/FindLibunwind.cmake
tools/cmake/Tests.cmake
tools/cmake/src/internal_config.h.in