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