CMake: Fix IMPORTED_IMPLIB to be set for shared libraries on Windows
The correct variable to check is WIN32, not WINDOWS.
Amends 85e25d93b3
Pick-to: 6.2
Change-Id: I4570eb5a124bcaa0bd38135dd7c7f48345c40c9d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
bb10
parent
de540c283d
commit
b5a0f88029
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue