--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -149,7 +149,7 @@
     endif()
 
     if (NOT EXISTS ${link})
-        if (CMAKE_HOST_UNIX)
+        if (CMAKE_HOST_UNIX OR MSYS)
             set(command ln -s ${target} ${link})
         else()
             if (IS_DIRECTORY ${target})
