Skip to content

Commit

Permalink
Remove need for elevated command line in Windows
Browse files Browse the repository at this point in the history
Changes use of mklink in Windows test builds, to create junctions instead of
directory symbolic links. This removes the need for an elevated command prompt
when running cmake to create the Visual Studio project files.
  • Loading branch information
redtangent authored and yanesca committed Nov 17, 2016
1 parent e2e2db4 commit 41ce6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
if (CMAKE_HOST_UNIX)
set(command ln -s ${target} ${link})
else()
set(command cmd.exe /c mklink /d ${link} ${target})
set(command cmd.exe /c mklink /j ${link} ${target})
endif()

execute_process(COMMAND ${command}
Expand Down

0 comments on commit 41ce6e6

Please sign in to comment.