mirror of
https://github.com/reactos/CMake.git
synced 2024-11-30 15:00:41 +00:00
Fix Module.ExternalData test on Cygwin
In ExternalData_URL_TEMPLATES add a leading slash to the path after file:// only if the path does not already start with one.
This commit is contained in:
parent
06e8dedb3c
commit
aed590a7e0
@ -4,8 +4,12 @@ project(ExternalDataTest NONE)
|
|||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
include(ExternalData)
|
include(ExternalData)
|
||||||
|
|
||||||
|
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" MATCHES "^/")
|
||||||
|
set(slash /)
|
||||||
|
endif()
|
||||||
set(ExternalData_URL_TEMPLATES
|
set(ExternalData_URL_TEMPLATES
|
||||||
"file:///${CMAKE_CURRENT_SOURCE_DIR}/%(algo)/%(hash)"
|
"file://${slash}${CMAKE_CURRENT_SOURCE_DIR}/%(algo)/%(hash)"
|
||||||
)
|
)
|
||||||
set(ExternalData_BINARY_ROOT "${CMAKE_CURRENT_BINARY_DIR}/ExternalData")
|
set(ExternalData_BINARY_ROOT "${CMAKE_CURRENT_BINARY_DIR}/ExternalData")
|
||||||
file(REMOVE_RECURSE ${ExternalData_BINARY_ROOT}) # clean test
|
file(REMOVE_RECURSE ${ExternalData_BINARY_ROOT}) # clean test
|
||||||
|
Loading…
Reference in New Issue
Block a user