commit | d75ee64c1fba22d10e49a510e931cbe1fd6a3e00 | [log] [tgz] |
---|---|---|
author | Darryl Green <darryl.green@arm.com> | Thu Jun 07 11:55:50 2018 +0100 |
committer | Darryl Green <darryl.green@arm.com> | Thu Jun 07 11:55:50 2018 +0100 |
tree | 4af287be57f74316fb7f4743945c566c1cc13d7f | |
parent | c041435fcf9e1fd55f9e4ea15c6f6e4107a4c97e [diff] [blame] |
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}