From 93ff87f74bcfa3bde7cc0868e57eeddb0a510c81 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Sat, 16 Mar 2019 22:24:36 +0100 Subject: [PATCH] [win-pthreads] correctly handle static libs --- cmake/Modules/FindPThreads_windows.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/FindPThreads_windows.cmake b/cmake/Modules/FindPThreads_windows.cmake index 29c10941..e1c4cfd2 100644 --- a/cmake/Modules/FindPThreads_windows.cmake +++ b/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" )