MSVC: compat: dirname() from <libgen.h>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 272dd00..dd29a32 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -367,7 +367,7 @@
     include_directories(${COMPAT_POSIX_INCLUDES})
 
     find_package(pthreads REQUIRED)
-    target_link_libraries(yang PThreads4W::PThreads4W)
+    target_link_libraries(yang PThreads4W::PThreads4W shlwapi.lib)
 endif()
 
 set_target_properties(yang PROPERTIES VERSION ${LIBYANG_SOVERSION_FULL} SOVERSION ${LIBYANG_SOVERSION})