FindZLIB doesn't work with TARGET_RUNTIME_DLLS generator expression
I tried to copy the zlib.dll
via TARGET_RUNTIME_DLLS
, but it evaluates to an empty string.
My guess is that it doesn't work because FindZLIB
doesn't set IMPORTED_LOCATION
but IMPORTED_LOCATION_RELEASE
and/or IMPORTED_LOCATION_DEBUG
while TARGET_RUNTIME_DLLS
requires IMPORTED_LOCATION
.