From: Martin Quinson Date: Mon, 7 Mar 2016 21:27:32 +0000 (+0100) Subject: display the content of simgrid_config.h at config time X-Git-Tag: v3_13~495 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/845f31f5532486fd8319dd8884066af23ae068ad display the content of simgrid_config.h at config time --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f5dd8b54a..b0f52fe9da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -867,12 +867,22 @@ endif() message("") message("##########################################") message("#### Content of src/internal_config.h ####") +message("##########################################") file(STRINGS ${CMAKE_CURRENT_BINARY_DIR}/src/internal_config.h config_output) LIST(REMOVE_AT config_output 0 1 2 3 4 5 6 7 8) # Pass the file header foreach(line ${config_output}) message(" ${line}") endforeach() -message("#### end of src/internal_config.h ####") +message("##########################################") +message("#### Content of simgrid_config.h ####") +message("##########################################") +file(STRINGS ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid_config.h config_output) +LIST(REMOVE_AT config_output 0 1 2 3 4 5 6 7 8 9 -1) # Pass the file header +foreach(line ${config_output}) + message(" ${line}") +endforeach() +message("##########################################") +message("#### End of configuration headers ####") message("##########################################") message("\nConfiguration of package `simgrid':") diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index a6f787f6ec..340f0a877c 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -13,7 +13,7 @@ #define SIMGRID_VERSION_MINOR @SIMGRID_VERSION_MINOR@ #define SIMGRID_VERSION_PATCH @SIMGRID_VERSION_PATCH@ -/* Version as a single integer. v3.4 is 30400; v3.16.2 is 31602; v42 will be 420000, and so on. */ +/* Version as a single integer. v3.4 is 30400, v3.16.2 is 31602, v42 will be 420000, and so on. */ #define SIMGRID_VERSION (100UL * (100UL * (@SIMGRID_VERSION_MAJOR@) + (@SIMGRID_VERSION_MINOR@)) + (@SIMGRID_VERSION_PATCH@)) #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"