Skip to content
Snippets Groups Projects
Commit b7e3cc68 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'fix-cmake-qt5.10' into 'master'

cmake: fix qt version regex to work for qt 5.10

See merge request OpenFlipper-Free/OpenFlipper!49
parents 7c10bc7d c8a9a69e
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ macro (acg_qt5)
endif(Qt5Core_VERSION)
string(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1" QT_VERSION_MAJOR "${Qt5Core_VERSION_STRING}")
string(REGEX REPLACE "^[0-9]+\\.([0-9])+\\.[0-9]+.*" "\\1" QT_VERSION_MINOR "${Qt5Core_VERSION_STRING}")
string(REGEX REPLACE "^[0-9]+\\.([0-9]+)\\.[0-9]+.*" "\\1" QT_VERSION_MINOR "${Qt5Core_VERSION_STRING}")
string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" QT_VERSION_PATCH "${Qt5Core_VERSION_STRING}")
find_package (Qt5Widgets QUIET PATHS ${QT_DEFAULT_PATH} ${QT5_FINDER_FLAGS})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment