mklink needs /d for directories
This commit is contained in:
parent
4d2ef297cb
commit
89eb1970e9
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user