diff options
author | Garrett D'Amore <garrett@damore.org> | 2016-06-06 17:36:39 -0700 |
---|---|---|
committer | Garrett D'Amore <garrett@damore.org> | 2016-06-06 17:36:39 -0700 |
commit | 5ca48a1166c87986a117af726c52941cf0896d80 (patch) | |
tree | 8b08e9259d72d4b64c5b560fe0f3855063e89086 | |
parent | 857665f6b8d7b6f8ba2edbb1fc6557932c8d8909 (diff) | |
download | nanomsg-5ca48a1166c87986a117af726c52941cf0896d80.tar.gz |
fixes #758 CMake still uses Unknown for version in source tarballs (2nd try)1.0.0-rc2
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bf4e919..5cffc29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,7 +82,7 @@ elseif (GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") elseif (EXISTS ${PROJECT_SOURCE_DIR}/.version) # If git is not available (e.g. when building from source package) # we can extract the package version from .version file. - file (READ .version NN_PACKAGE_VERSION) + file (STRINGS .version NN_PACKAGE_VERSION) else () set (NN_PACKAGE_VERSION "Unknown") endif() |