mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 13:55:45 +01:00
Fix symlink command for cross compiling
Check for the host system to determine which command should be used to create a symlink. Otherwise symlinking will fail when cross compiling polarssl on a unix host for windows.
This commit is contained in:
parent
1fd325309b
commit
f7ced9232b
@ -97,7 +97,7 @@ if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
file(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/data_files" target)
|
||||
|
||||
if (NOT EXISTS ${link})
|
||||
if (UNIX)
|
||||
if (CMAKE_HOST_UNIX)
|
||||
set(command ln -s ${target} ${link})
|
||||
else()
|
||||
set(command cmd.exe /c mklink ${link} ${target})
|
||||
|
Loading…
Reference in New Issue
Block a user