fixes #758 CMake still uses Unknown for version in source tarballs
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dc17e36..bf4e919 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -79,7 +79,7 @@
set (NN_PACKAGE_VERSION "${NN_PACKAGE_VERSION}-dirty")
endif()
-elseif (EXISTS .version)
+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)