commit | d866abe377932723cfed3b77fcee4f20edf555ee | [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:40:20 2018 +0100 |
tree | e9cb66a1ca591513bb19a159d80de48b1882b6cf | |
parent | 61e396b5973b87ea12de25bc62d584ed70e6cfac [diff] |
Fix out-of-tree testing symlinks on Windows
diff --git a/CMakeLists.txt b/CMakeLists.txt index c9e7913..11a62e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -29,7 +29,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}