[win-pthreads] correctly handle static libs

This commit is contained in:
Stefano Sinigardi
2019-03-16 22:24:36 +01:00
parent f9085d8c2a
commit 93ff87f74b

View File

@ -70,7 +70,7 @@ if( PThreads_windows_FOUND AND NOT TARGET PThreads_windows::PThreads_windows )
else()
add_library( PThreads_windows::PThreads_windows UNKNOWN IMPORTED )
set_target_properties( PThreads_windows::PThreads_windows PROPERTIES
IMPORTED_LOCATION_RELEASE "${PThreads_windows_LIBRARY}"
IMPORTED_LOCATION_RELEASE "${PThreads_windows_LIBRARY_RELEASE}"
INTERFACE_INCLUDE_DIRECTORIES "${PThreads_windows_INCLUDE_DIR}"
IMPORTED_CONFIGURATIONS Release
IMPORTED_LINK_INTERFACE_LANGUAGES "C" )