[CMake] ExternalData on unmounted Windows shares?
Brad King
brad.king at kitware.com
Fri Nov 15 16:45:23 EST 2013
On 11/15/2013 04:17 PM, Magnus Therning wrote:
> I just reproduced it locally. Here's what I did:
I tested with a local share and corresponding url template:
file:////127.0.0.1/share$/%(algo)/%(hash)
It downloads at build time successfully for me.
> 4. Move the generated "SHA file" to C:\devo\shared$\SHA256\, in my case it became
>
> C:\devo\shared$\SHA26\9cf657b2a8e4a3deec1aa820dd60540d000bf1e6a5ae84920e93d698c293b2fc
That should be SHA256, not SHA26.
> -- Fetching "file:////127.0.0.1/shared$/SHA256/9cf657b2a8e4a3deec1aa820dd60540d000bf1e6a5ae84920e93d698c293b2fc" CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/ExternalData.cmake:717 (message): Object
> SHA256=9cf657b2a8e4a3deec1aa820dd60540d000bf1e6a5ae84920e93d698c293b2fc not found at:
>
> file:////127.0.0.1/shared$/SHA256/9cf657b2a8e4a3deec1aa820dd60540d000bf1e6a5ae84920e93d698c293b2fc ("couldn't read a file:// file")
Is the mount available without any required credentials?
Load it in explorer as
\\127.0.0.1\shared$\SHA256
first to be sure.
>> ExternalData: Allow local stores without any URL templates http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8eb20eea
>
> Excellent, I hope that's slated for the next release then :)
It is. Meanwhile you can just put in a dummy URL template.
-Brad
More information about the CMake
mailing list