cmake: fix Qt6Core5Compat detection

Change-Id: I6de4de1f20b4e611f632ee515cfdf5243f2d16ba
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tim Blechmann
2021-06-16 11:27:55 +08:00
parent fa6490efbc
commit 8ec23e44a2

View File

@@ -59,7 +59,7 @@ foreach(comp IN LISTS Qt5_FIND_COMPONENTS)
endforeach() endforeach()
# alias Qt6::Core5Compat to Qt6Core5Compat to make consistent with Qt5 path # alias Qt6::Core5Compat to Qt6Core5Compat to make consistent with Qt5 path
if (TARGET Qt6::Core5Compat AND NOT TARGET Qt6CoreCompat) if (TARGET Qt6::Core5Compat AND NOT TARGET Qt6Core5Compat)
add_library(Qt6Core5Compat ALIAS Qt6::Core5Compat) add_library(Qt6Core5Compat ALIAS Qt6::Core5Compat)
endif() endif()