From 7754cf82d8f7772398ed353c193a2224c3155410 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 3 Sep 2017 17:50:23 +0200 Subject: [PATCH] dependency info: Support prefixed static Qt 5 modules --- cmake/modules/ConfigHeader.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/ConfigHeader.cmake b/cmake/modules/ConfigHeader.cmake index 13deef6..4669721 100644 --- a/cmake/modules/ConfigHeader.cmake +++ b/cmake/modules/ConfigHeader.cmake @@ -20,7 +20,7 @@ foreach(LINKAGE IN ITEMS "" "STATIC_") if(TARGET ${DEPENDENCY}) # find version and display name for target string(SUBSTRING "${DEPENDENCY}" 0 5 DEPENDENCY_PREFIX) - if("${DEPENDENCY_PREFIX}" STREQUAL "Qt5::") + if("${DEPENDENCY_PREFIX}" STREQUAL "Qt5::" OR "${DEPENDENCY_PREFIX}" STREQUAL "StaticQt5::") # read meta-data of Qt module string(SUBSTRING "${DEPENDENCY}" 5 -1 DEPENDENCY_MODULE_NAME) set(DEPENDENCY_DISPLAY_NAME "Qt ${DEPENDENCY_MODULE_NAME}")