Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make the SIMGRID_VERSION_STRING easier to parse in subprojects
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 23 Jul 2015 16:12:23 +0000 (18:12 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 24 Jul 2015 12:59:32 +0000 (14:59 +0200)
CMakeLists.txt
buildtools/Cmake/CompleteInFiles.cmake
include/simgrid_config.h.in

index e7311c7..9f85a08 100644 (file)
@@ -65,8 +65,9 @@ else()
   set(release_version "${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}.${SIMGRID_VERSION_PATCH}")
 endif()
 
   set(release_version "${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}.${SIMGRID_VERSION_PATCH}")
 endif()
 
-set(SIMGRID_VERSION_STRING
-  "SimGrid version ${release_version}${SIMGRID_VERSION_EXTRA}\\nCopyright (c) 2004-${SIMGRID_VERSION_DATE}. The Simgrid Team.")
+set(SIMGRID_VERSION_STRING "SimGrid version ${release_version}${SIMGRID_VERSION_EXTRA}")
+set(SIMGRID_VERSION_BANNER
+  "SIMGRID_VERSION_STRING\\nCopyright (c) 2004-${SIMGRID_VERSION_DATE}. The Simgrid Team.")
 
 set(libsimgrid_version "${release_version}")
 set(libsimgrid-java_version "${release_version}")
 
 set(libsimgrid_version "${release_version}")
 set(libsimgrid-java_version "${release_version}")
index 3237bad..9a098a0 100644 (file)
@@ -549,15 +549,15 @@ elseif(EXISTS ${CMAKE_HOME_DIRECTORY}/.gitversion)
 endif()
 
 if(release)
 endif()
 
 if(release)
-  set(SIMGRID_VERSION_STRING "${SIMGRID_VERSION_STRING}\\nRelease build")
+  set(SIMGRID_VERSION_BANNER "${SIMGRID_VERSION_BANNER}\\nRelease build")
 else()
 else()
-  set(SIMGRID_VERSION_STRING "${SIMGRID_VERSION_STRING}\\nDevelopment build")
+  set(SIMGRID_VERSION_BANNER "${SIMGRID_VERSION_BANNER}\\nDevelopment build")
 endif()
 if(GIT_VERSION)
 endif()
 if(GIT_VERSION)
-  set(SIMGRID_VERSION_STRING "${SIMGRID_VERSION_STRING} at commit ${GIT_VERSION}")
+  set(SIMGRID_VERSION_BANNER "${SIMGRID_VERSION_BANNER} at commit ${GIT_VERSION}")
 endif()
 if(GIT_DATE)
 endif()
 if(GIT_DATE)
-  set(SIMGRID_VERSION_STRING "${SIMGRID_VERSION_STRING} (${GIT_DATE})")
+  set(SIMGRID_VERSION_BANNER "${SIMGRID_VERSION_BANNER} (${GIT_DATE})")
 endif()
 #--------------------------------------------------------------------------------------------------
 
 endif()
 #--------------------------------------------------------------------------------------------------
 
index 6a93f00..45d389d 100644 (file)
@@ -19,6 +19,8 @@
 
 #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
 
 
 #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
 
+#define SIMGRID_VERSION_BANNER "@SIMGRID_VERSION_BANNER@"
+
 /* Version X.Y.Z will get version number XYZ: all digits concatenated without dots
  * (with Y and Z must be on two positions)*/
 
 /* Version X.Y.Z will get version number XYZ: all digits concatenated without dots
  * (with Y and Z must be on two positions)*/