From f7ced9232bd1832180f3a93fa2f0c7b9e9487951 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 21 May 2014 10:25:51 +0000 Subject: [PATCH] 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. --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d75752ceb..cbccebd4e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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})