Merge topic 'fix-CTestUpdateHG-url'

d0702f8 CTest.UpdateHG: Fix repo URL for leading slash
This commit is contained in:
Brad King 2012-03-23 13:35:28 -04:00 committed by CMake Topic Stage
commit 9d6b7bed7a

View File

@ -28,7 +28,10 @@ run_child(
WORKING_DIRECTORY ${TOP}/repo.hg
COMMAND ${HG} init
)
set(REPO file:///${TOP}/repo.hg)
if(NOT "${TOP}" MATCHES "^/")
set(slash /)
endif()
set(REPO file://${slash}${TOP}/repo.hg)
#-----------------------------------------------------------------------------
# Import initial content into the repository.