Commit 2fa02ac4 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cmake: export Qt5_DIR on Windows and macOS

This extra check is now needed because these platforms are
`MUST_USE_SYSTEM` which precludes the option from existing.
parent 99a2985e
......@@ -227,7 +227,7 @@ function (superbuild_add_packaging)
endif ()
list(GET generators 0 default_generator)
if (USE_SYSTEM_qt5)
if (qt5_enabled AND (USE_SYSTEM_qt5 OR APPLE OR WIN32))
list(APPEND superbuild_export_variables
Qt5_DIR)
find_package(Qt5 QUIET REQUIRED COMPONENTS Core)
......
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