|
|
@ -9,9 +9,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) |
|
|
|
execute_process( |
|
|
|
COMMAND cat VERSION |
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} |
|
|
|
OUTPUT_VARIABLE N2N_VERSION |
|
|
|
OUTPUT_VARIABLE PACKAGE_VERSION |
|
|
|
) |
|
|
|
string(STRIP "${N2N_VERSION}" N2N_VERSION) |
|
|
|
string(STRIP "${PACKAGE_VERSION}" PACKAGE_VERSION) |
|
|
|
set(N2N_OSNAME ${CMAKE_SYSTEM_NAME}) |
|
|
|
execute_process( |
|
|
|
COMMAND git status |
|
|
@ -37,8 +37,8 @@ MESSAGE(STATUS "Build from git rev: ${N2N_VERSION}") |
|
|
|
endif (GIT_ERROR_CODE EQUAL 0) |
|
|
|
|
|
|
|
add_definitions(-DCMAKE_BUILD) |
|
|
|
add_definitions(-DPACKAGE_VERSION="${N2N_VERSION}" -DPACKAGE_OSNAME="${N2N_OSNAME}") |
|
|
|
add_definitions(-DN2N_VERSION="${N2N_VERSION}" -DN2N_OSNAME="${N2N_OSNAME}") |
|
|
|
add_definitions(-DPACKAGE_OSNAME="${N2N_OSNAME}") |
|
|
|
add_definitions(-DPACKAGE_VERSION="${PACKAGE_VERSION}" -DN2N_OSNAME="${N2N_OSNAME}") |
|
|
|
|
|
|
|
|
|
|
|
# Build information |
|
|
|