mklink needs /d for directories

This commit is contained in:
Manuel Pégourié-Gonnard 2015-07-08 21:39:43 +01:00
parent 4d2ef297cb
commit 89eb1970e9

View File

@ -104,7 +104,7 @@ if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
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}