Skip to content

Commit

Permalink
NDMP: set vendor, product and revision information
Browse files Browse the repository at this point in the history
Before, the defaults coming from the NDMP library were set.
  • Loading branch information
pstorz committed Dec 19, 2018
1 parent 0fe91c0 commit 62f5adc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/cmake/BareosExtractVersionInfo.cmake
Expand Up @@ -22,6 +22,7 @@
file(STRINGS ${CMAKE_SOURCE_DIR}/src/include/version.h VERSION_INFO REGEX define.*VERSION.*)
string(REGEX MATCH [0-9.]+ VERSION ${VERSION_INFO})
string(REGEX MATCH [0-9]+ SOVERSION ${VERSION_INFO})
string(REGEX MATCH \".*\" FULLVERSION ${VERSION_INFO})

# extract date from version.h
file(STRINGS ${CMAKE_SOURCE_DIR}/src/include/version.h DATE_INFO REGEX define.*BDATE.*)
Expand Down
4 changes: 4 additions & 0 deletions core/src/ndmp/CMakeLists.txt
Expand Up @@ -19,6 +19,10 @@


set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNDMOS_OPTION_NO_TEST_AGENTS")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNDMOS_CONST_NDMJOBLIB_REVISION=\\\"${FULLVERSION}\\\"")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNDMOS_CONST_VENDOR_NAME=\\\"Bareos\\ GmbH\\ \\&\\ Co.KG\\\"")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNDMOS_CONST_PRODUCT_NAME=\\\"Bareos\\\"")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DNDMOS_CONST_PRODUCT_REVISION=\\\"${FULLVERSION}\\\"")

if (${HAVE_LINUX_OS})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_LINUX_OS")
Expand Down

0 comments on commit 62f5adc

Please sign in to comment.