diff options
author | Simon Rettberg | 2020-12-02 13:21:43 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-12-02 13:21:43 +0100 |
commit | 0b77a35fb31b1e0141f824b1b7a22c1db1797ec9 (patch) | |
tree | 4504b41770cab84b13e90a51470ba4f4c02eb3e3 /cmake | |
parent | [BUILD] Include branch and build timestamp in binaries (diff) | |
download | dnbd3-0b77a35fb31b1e0141f824b1b7a22c1db1797ec9.tar.gz dnbd3-0b77a35fb31b1e0141f824b1b7a22c1db1797ec9.tar.xz dnbd3-0b77a35fb31b1e0141f824b1b7a22c1db1797ec9.zip |
[BUILD] Fix dnbd3-client build, Fix source-only build
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Version.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Version.cmake b/cmake/Version.cmake index 75e99e3..9beb338 100644 --- a/cmake/Version.cmake +++ b/cmake/Version.cmake @@ -36,7 +36,7 @@ macro(get_repository_version REPOSITORY_VERSION VERSION_HEADER_FILE VERSION_BUIL if(EXISTS ${VERSION_HEADER_FILE}) # get version information from the generated version header of the source package file(READ ${VERSION_HEADER_FILE} GIT_VERSION) - string(REGEX MATCH "DNBD3_VERSION\s+\"([0-9][A-Za-z0-9.+~-]*)\"" GIT_VERSION ${GIT_VERSION}) + string(REGEX MATCH "DNBD3_VERSION[ \t]+\"([0-9][A-Za-z0-9.+~-]*)\"" GIT_VERSION ${GIT_VERSION}) set(GIT_VERSION "${CMAKE_MATCH_1}") else(EXISTS ${VERSION_HEADER_FILE}) # get detailed Git version information from Git repository |