[CMake] ExternalData on unmounted Windows shares?

Magnus Therning magnus at therning.org
Fri Nov 15 17:02:12 EST 2013


On Fri, Nov 15, 2013 at 04:45:23PM -0500, Brad King wrote:
> 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.

That was a typo in my email, it's SHA256 in the file system.

>> -- 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.

No credentials are required, but I found another typo in my
CMakeLists.txt.  Fixing that made it work for me too.

I still need to check this a second time at work though.  There the
setup of shares is a bit more complicated (using MSDFS and such), it
also does require credentials.

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

If you can explain how you do something, then you're very very bad at
it.
     -- John Hopfield
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131115/a4089731/attachment.pgp>


More information about the CMake mailing list