Skip to content

Commit

Permalink
Fix read Poco version
Browse files Browse the repository at this point in the history
  • Loading branch information
sgallou committed Apr 6, 2020
1 parent 231b78b commit 9c08584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/cmake/FindPoco.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ include (SelectLibraryConfigurations)
# Read the version information from the VERSION file
file (STRINGS "${POCO_DIR_SEARCH}/VERSION" POCO_VERSION_FULL )
string(REGEX REPLACE "([0-9]+)\\.[0-9]+\\.[0-9]+.*$" "\\1" CPACK_PACKAGE_VERSION_MAJOR ${POCO_VERSION_FULL})
string(REGEX REPLACE "[0-9]+\\.([0-9])+\\.[0-9]+.*$" "\\1" CPACK_PACKAGE_VERSION_MINOR ${POCO_VERSION_FULL})
string(REGEX REPLACE "[0-9]+\\.([0-9]+)\\.[0-9]+.*$" "\\1" CPACK_PACKAGE_VERSION_MINOR ${POCO_VERSION_FULL})
string(REGEX REPLACE "[0-9]+\\.[0-9]+\\.([0-9]+).*$" "\\1" CPACK_PACKAGE_VERSION_PATCH ${POCO_VERSION_FULL})

set(POCO_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
Expand Down

0 comments on commit 9c08584

Please sign in to comment.