Commit ae4b389d authored by Ben Boeckel's avatar Ben Boeckel

qt5: provide the version of Qt5 to the packaging step

parent 457f3ffd
......@@ -176,7 +176,13 @@ function (superbuild_add_packaging)
if (USE_SYSTEM_qt5)
list(APPEND superbuild_export_variables
Qt5_DIR)
find_package(Qt5 QUIET REQUIRED COMPONENTS Core)
set(qt5_version "${Qt5Core_VERSION_MAJOR}.${Qt5Core_VERSION_MINOR}")
else ()
set(qt5_version "${qt5_SOURCE_SELECTION}")
endif ()
list(APPEND superbuild_export_variables
qt5_version)
include(cmb.suffix)
list(APPEND superbuild_export_variables
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment