[win-pthreads] correctly handle static libs

pull/2599/head
Stefano Sinigardi 6 years ago
parent f9085d8c2a
commit 93ff87f74b
  1. 2
      cmake/Modules/FindPThreads_windows.cmake

@ -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" )

Loading…
Cancel
Save