Merge remote-tracking branch 'public/pr/1699' into development
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 587cfe2..b9a0ce0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,7 +67,11 @@
         if (CMAKE_HOST_UNIX)
             set(command ln -s ${target} ${link})
         else()
-            set(command cmd.exe /c mklink /j ${link} ${target})
+            if (IS_DIRECTORY ${target})
+                set(command cmd.exe /c mklink /j ${link} ${target})
+            else()
+                set(command cmd.exe /c mklink /h ${link} ${target})
+            endif()
         endif()
 
         execute_process(COMMAND ${command}