Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
include patch version in release number so that archives are correctly numbered
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 27 Jun 2011 12:06:43 +0000 (14:06 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 27 Jun 2011 12:06:43 +0000 (14:06 +0200)
CMakeLists.txt

index cd24ab1..1c4281c 100644 (file)
@@ -18,7 +18,11 @@ set(SIMGRID_VERSION_MAJOR "3")
 set(SIMGRID_VERSION_MINOR "6")
 set(SIMGRID_VERSION_PATCH "1")
 
-set(release_version "${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}")
+if(${SIMGRID_VERSION_PATCH} EQUAL "0")
+       set(release_version "${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}")
+else(${SIMGRID_VERSION_PATCH} EQUAL "0")
+       set(release_version "${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}.${SIMGRID_VERSION_PATCH}")
+endif(${SIMGRID_VERSION_PATCH} EQUAL "0")
 set(libsimgrid_version "${release_version}")
 set(libgras_version "${release_version}")
 set(libsmpi_version "${release_version}")