fixes #758 CMake still uses Unknown for version in source tarballs (2nd try)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bf4e919..5cffc29 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,7 +82,7 @@
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()