sdktool: Fix CMake configuration on Qt6 within Qt Creator

Change-Id: I9028ad7aa6018b63c5afedb65add6ce765660bb7
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Cristian Adam
2023-02-23 16:21:29 +01:00
parent 682ef157d8
commit beabb53422

View File

@@ -120,7 +120,7 @@ add_qtc_executable(sdktool
main.cpp
)
if (MSVC AND TARGET sdktool AND Qt5_VERSION VERSION_LESS 6.0.0)
if (MSVC AND TARGET sdktool AND TARGET Qt5::Core)
# find out if Qt is static and set /MT if so
get_target_property(_input_type Qt5::Core TYPE)
if (${_input_type} STREQUAL "STATIC_LIBRARY")