mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Remove one remaining use of N2N_OSNAME and cleanup
This commit is contained in:
parent
8504b7c268
commit
109b6e2fa5
|
@ -6,7 +6,6 @@ SET(CMAKE_VERBOSE_MAKEFILE ON)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
# N2n release information
|
# N2n release information
|
||||||
set(N2N_OSNAME ${CMAKE_SYSTEM_NAME})
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND scripts/version.sh
|
COMMAND scripts/version.sh
|
||||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||||
|
@ -28,7 +27,7 @@ string(STRIP "${PACKAGE_VERSION}" PACKAGE_VERSION)
|
||||||
MESSAGE(STATUS "Build for version: ${PACKAGE_VERSION}")
|
MESSAGE(STATUS "Build for version: ${PACKAGE_VERSION}")
|
||||||
|
|
||||||
add_definitions(-DCMAKE_BUILD)
|
add_definitions(-DCMAKE_BUILD)
|
||||||
add_definitions(-DPACKAGE_OSNAME="${N2N_OSNAME}" -DN2N_OSNAME="${N2N_OSNAME}")
|
add_definitions(-DPACKAGE_OSNAME="${CMAKE_SYSTEM_NAME}")
|
||||||
add_definitions(-DPACKAGE_VERSION="${PACKAGE_VERSION}")
|
add_definitions(-DPACKAGE_VERSION="${PACKAGE_VERSION}")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
/* OS name */
|
/* OS name */
|
||||||
#ifndef PACKAGE_OSNAME
|
#ifndef PACKAGE_OSNAME
|
||||||
#define PACKAGE_OSNAME N2N_OSNAME
|
#define PACKAGE_OSNAME "windows"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user