Fix out-of-tree testing symlinks on Windows
This commit is contained in:
parent
c041435fcf
commit
d75ee64c1f
1 changed files with 5 additions and 1 deletions
|
@ -67,7 +67,11 @@ function(link_to_source base_name)
|
|||
if (CMAKE_HOST_UNIX)
|
||||
set(command ln -s ${target} ${link})
|
||||
else()
|
||||
if (IS_DIRECTORY ${target})
|
||||
set(command cmd.exe /c mklink /j ${link} ${target})
|
||||
else()
|
||||
set(command cmd.exe /c mklink ${link} ${target})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
execute_process(COMMAND ${command}
|
||||
|
|
Loading…
Reference in a new issue