mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-07 12:57:18 +02:00
Fix out-of-tree testing symlinks on Windows
This commit is contained in:
committed by
Simon Butcher
parent
61e396b597
commit
d866abe377
@@ -29,7 +29,11 @@ function(link_to_source base_name)
|
||||
if (CMAKE_HOST_UNIX)
|
||||
set(command ln -s ${target} ${link})
|
||||
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()
|
||||
|
||||
execute_process(COMMAND ${command}
|
||||
|
||||
Reference in New Issue
Block a user