mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Merge pull request #392 from fengdaolong/fix_vernum
Fix the version number displayed after building by Cmake.
This commit is contained in:
commit
338f30ed0d
|
@ -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}")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user