mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Since upstream curl commit curl-7_52_0~131 (URL-parser: for file://[host]/ URLs, the [host] must be localhost, 2016-11-11) we can no longer use URLs of the form `file://c:/...` on Windows. These worked only accidentally before. Use `file:///c:/...` instead.
9 lines
223 B
CMake
9 lines
223 B
CMake
if(NOT "${CMAKE_CURRENT_BINARY_DIR}" MATCHES "^/")
|
|
set(slash /)
|
|
endif()
|
|
file(UPLOAD
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/UPLOAD-unused-argument.txt"
|
|
"file://${slash}${CMAKE_CURRENT_BINARY_DIR}/unused-argument.txt"
|
|
JUNK
|
|
)
|