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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue