Skip to content

Commit

Permalink
fix webui version problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 22, 2019
1 parent 54980b1 commit 6cbd247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/cmake/BareosExtractVersionInfo.cmake
Expand Up @@ -23,13 +23,13 @@ IF (NOT DEFINED VERSION_STRING)
file(STRINGS ${PROJECT_SOURCE_DIR}/../core/src/include/version.h VERSION_STRINGS REGEX define.*VERSION.*)
list(GET VERSION_STRINGS 0 VERSION_STRING)
# VERSION_STRING now is something like #define VERSION "18.2.4rc2"
string(REGEX MATCH \".*\" BAREOS_FULL_VERSION ${VERSION_STRING})
ELSE()
set(BAREOS_FULL_VERSION ${VERSION_STRING})
ENDIF()

string(REGEX MATCH [0-9.]+ BAREOS_NUMERIC_VERSION ${VERSION_STRING})
string(REGEX MATCH [0-9]+ SOVERSION ${VERSION_STRING})
string(REGEX MATCH \".*\" BAREOS_FULL_VERSION ${VERSION_STRING})
string(REPLACE "\"" "" BAREOS_FULL_VERSION ${BAREOS_FULL_VERSION})

MESSAGE("BareosExtractVersionInfo: BAREOS_FULL_VERSION is " ${BAREOS_FULL_VERSION})
Expand Down

0 comments on commit 6cbd247

Please sign in to comment.