Browse Source
Merge pull request #392 from fengdaolong/fix_vernum
Fix the version number displayed after building by Cmake.
pull/398/head
Luca Deri
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
CMakeLists.txt
|
|
@ -4,7 +4,7 @@ include(CheckFunctionExists) |
|
|
|
SET(CMAKE_VERBOSE_MAKEFILE ON) |
|
|
|
|
|
|
|
# N2n release information |
|
|
|
set(N2N_VERSION "2.7.0") |
|
|
|
set(N2N_VERSION "2.9.0") |
|
|
|
set(N2N_OSNAME ${CMAKE_SYSTEM}) |
|
|
|
execute_process( |
|
|
|
COMMAND git --version |
|
|
@ -29,7 +29,7 @@ MESSAGE(STATUS "Build from git rev: ${N2N_VERSION}") |
|
|
|
endif (GIT_EXIST) |
|
|
|
|
|
|
|
add_definitions(-DCMAKE_BUILD) |
|
|
|
add_definitions(-DGIT_RELEASE="" -DPACKAGE_VERSION="${N2N_VERSION}" -DPACKAGE_OSNAME="${N2N_OSNAME}") |
|
|
|
add_definitions(-DGIT_RELEASE="${N2N_VERSION}" -DPACKAGE_VERSION="${N2N_VERSION}" -DPACKAGE_OSNAME="${N2N_OSNAME}") |
|
|
|
add_definitions(-DN2N_VERSION="${N2N_VERSION}" -DN2N_OSNAME="${N2N_OSNAME}") |
|
|
|
|
|
|
|
|
|
|
|