CMake: Fix IMPORTED_IMPLIB to be set for shared libraries on Windows

The correct variable to check is WIN32, not WINDOWS.

Amends 85e25d93b3b99fbeae8541586252df2cb099081d

Pick-to: 6.2
Change-Id: I4570eb5a124bcaa0bd38135dd7c7f48345c40c9d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Alexandru Croitor 2021-07-14 11:14:51 +02:00
parent de540c283d
commit b5a0f88029

View File

@ -484,7 +484,7 @@ endif()\n\n")
set(write_implib FALSE)
set(write_soname FALSE)
if(target_type STREQUAL "SHARED_LIBRARY")
if(WINDOWS)
if(WIN32)
set(write_implib TRUE)
else()
set(write_soname TRUE)