mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-04-01 10:11:08 +02: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:
committed by
Paul Bakker
parent
02388c918d
commit
dcbd74f699
@@ -77,7 +77,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})
|
||||
|
||||
Reference in New Issue
Block a user