[cmake-developers] [CMake 0015749]: Make the URL option of ExternalProject_Add to accept lists

Schmertmann, Lars Lars.Schmertmann at governikus.de
Wed Jul 13 05:35:51 EDT 2016


Thanks for the hint. I removed the ^ to replace
all occurrences and not only the first one.

ExternalProject.cmake, Line 1670:
     string(REGEX REPLACE "^file://" "" url "${url}")

Lars S.



Am 13.07.2016 um 11:14 schrieb David Cole:
> Looks like you could also use a list of paths if you express them in
> "file://..." form. Local files can also be expressed as URLs.
>
>
> David C.
>
>
>
> On Wed, Jul 13, 2016 at 4:18 AM, Schmertmann, Lars
> <Lars.Schmertmann at governikus.de> wrote:
>> Hello there,
>>
>> I try to continue the work from André.
>> With the attached patch it is possible to use a list of URLs
>> but it is still limited to a single path.
>>
>> I think for a mix of pathes/URLs we need to move a lot of code
>> from ExternalProject.cmake into ExternalProject-download.cmake.
>> Maybe it is good to realize this in a new ticket/commit?
>>
>> Best regards
>>      Lars Schmertmann
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/cmake-developers

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-multiple-alternative-URLs.patch
Type: text/x-patch
Size: 4667 bytes
Desc: 0001-Add-support-for-multiple-alternative-URLs.patch
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160713/8f4d8ef0/attachment.bin>


More information about the cmake-developers mailing list