Add check for new lines in VERSION.
@@ -60,6 +60,7 @@ set(META_AUTHOR_MAINTAINER "vic798@gmail.com")
# Parse version
file(READ VERSION META_VERSION)
+string(REPLACE "\n" "" META_VERSION ${META_VERSION})
string(REPLACE "." ";" META_VERSION_LIST ${META_VERSION})
list(GET META_VERSION_LIST 0 META_VERSION_MAJOR)
list(GET META_VERSION_LIST 1 META_VERSION_MINOR)
