Merge remote-tracking branch 'public/pr/1699' into development

This commit is contained in:
Simon Butcher 2018-06-11 11:24:33 +01:00
commit fcfa4c21c1

View File

@ -67,7 +67,11 @@ function(link_to_source base_name)
if (CMAKE_HOST_UNIX) if (CMAKE_HOST_UNIX)
set(command ln -s ${target} ${link}) set(command ln -s ${target} ${link})
else() else()
if (IS_DIRECTORY ${target})
set(command cmd.exe /c mklink /j ${link} ${target}) set(command cmd.exe /c mklink /j ${link} ${target})
else()
set(command cmd.exe /c mklink /h ${link} ${target})
endif()
endif() endif()
execute_process(COMMAND ${command} execute_process(COMMAND ${command}