You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few custom targets that create symlinks, like this one:
if (WIN32)
add_custom_target(ResourcesDir ALL
COMMAND IF NOT EXIST ${RESOURCES_DST} mklink /J ${RESOURCES_DST} ${RESOURCES_SRC}
)
else ()
add_custom_target(ResourcesDir ALL
COMMAND ${CMAKE_COMMAND} -E create_symlink ${RESOURCES_SRC} ${RESOURCES_DST}
)
endif ()
This fails trying to compile on Win10 1803 with VS 2017:
6>You do not have sufficient privilege to perform this operation.
5>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1.
The reason behind it failing is a bit odd but the solution is pretty straightforward: Replace all mklink /D with mklink /J.
The text was updated successfully, but these errors were encountered:
There are a few custom targets that create symlinks, like this one:
This fails trying to compile on Win10 1803 with VS 2017:
The reason behind it failing is a bit odd but the solution is pretty straightforward: Replace all
mklink /D
withmklink /J
.The text was updated successfully, but these errors were encountered: