build: replace cmakedefine with define for integers in version-defines.h

Fixes https://gitlab.com/nsnam/ns-3-dev/-/issues/676
This commit is contained in:
Gabriel Ferreira
2022-06-18 18:35:46 -03:00
parent 0424c9a09c
commit 0219e55c46
2 changed files with 5 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ function(configure_embedded_version)
if(${VER_LIST_LEN} GREATER 2)
list(GET VERSION_LIST 2 NS3_VERSION_PATCH)
else()
set(NS3_VERSION_PATCH "00")
set(NS3_VERSION_PATCH "0")
endif()
endif()

View File

@@ -66,7 +66,7 @@
*
* Type: integer
*/
#cmakedefine NS3_VERSION_MAJOR @NS3_VERSION_MAJOR@
#define NS3_VERSION_MAJOR @NS3_VERSION_MAJOR@
/**
* The minor version extracted from #NS3_VERSION_TAG
@@ -76,7 +76,7 @@
*
* Type: integer
*/
#cmakedefine NS3_VERSION_MINOR @NS3_VERSION_MINOR@
#define NS3_VERSION_MINOR @NS3_VERSION_MINOR@
/**
* The patch number extracted from #NS3_VERSION_TAG
@@ -89,7 +89,7 @@
*
* Type: integer
*/
#cmakedefine NS3_VERSION_PATCH @NS3_VERSION_PATCH@
#define NS3_VERSION_PATCH @NS3_VERSION_PATCH@
/**
* The portion of the #NS3_VERSION_TAG indicating the version
@@ -110,7 +110,7 @@
*
* Type: integer
*/
#cmakedefine NS3_VERSION_TAG_DISTANCE @NS3_VERSION_TAG_DISTANCE@
#define NS3_VERSION_TAG_DISTANCE @NS3_VERSION_TAG_DISTANCE@
/**
* Hash value which uniquely identifies the commit of the