mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 10:15:40 +00:00
Fix out-of-tree testing symlinks on Windows
This commit is contained in:
parent
ee3a3d4a72
commit
215a40631f
|
@ -67,7 +67,11 @@ function(link_to_source base_name)
|
||||||
if (CMAKE_HOST_UNIX)
|
if (CMAKE_HOST_UNIX)
|
||||||
set(command ln -s ${target} ${link})
|
set(command ln -s ${target} ${link})
|
||||||
else()
|
else()
|
||||||
set(command cmd.exe /c mklink /j ${link} ${target})
|
if (IS_DIRECTORY ${target})
|
||||||
|
set(command cmd.exe /c mklink /j ${link} ${target})
|
||||||
|
else()
|
||||||
|
set(command cmd.exe /c mklink ${link} ${target})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
execute_process(COMMAND ${command}
|
execute_process(COMMAND ${command}
|
||||||
|
|
Loading…
Reference in a new issue