commit | 215a40631f39c407a65d93535579a1f438c7c635 | [log] [tgz] |
---|---|---|
author | Darryl Green <darryl.green@arm.com> | Thu Jun 07 11:55:50 2018 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Mon Jun 11 11:31:31 2018 +0100 |
tree | f5deb33ce3625f117764dfa51791e5440a5ccbbc | |
parent | ee3a3d4a72e61828e4f3b56c7f0b2c12e40fd1ab [diff] |
Fix out-of-tree testing symlinks on Windows
diff --git a/CMakeLists.txt b/CMakeLists.txt index 587cfe2..7641491 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -67,7 +67,11 @@ 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}