mklink needs /d for directories
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 8023803..864ea77 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -104,7 +104,7 @@
         if (CMAKE_HOST_UNIX)
             set(command ln -s ${target} ${link})
         else()
-            set(command cmd.exe /c mklink ${link} ${target})
+            set(command cmd.exe /c mklink /d ${link} ${target})
         endif()
 
         execute_process(COMMAND ${command}