Boost logo

Boost-Build :

Subject: [Boost-build] UNC path for library search path
From: Jim Gallagher (jim_at_[hidden])
Date: 2011-07-06 13:17:45


Hi,

We've got a bunch of third party libraries that we link against stored
on a file share. We would prefer to refer to the share using the UNC
convention, \\server\share\path, but this does not seem to work.

We've defined the libs in Jamroot like so:

import os ;

constant LIBSHARE : [ os.environ LIBSHARE ] ;

lib libfoo : : <target-os>windows <search>$(LIBSHARE)/lib ;

As sample setting for LIBSHARE looks like
"//myserver.company.com/share/version/win32". Running a build that has
libfoo as a dependency results in /LIBPATH:"..\..\.." being passed to
the linker, which is clearly wrong. If we map the share to a drive
letter, it does work correctly.

Any suggestions on how to get UNC paths to work?

Thanks,
Jim Gallagher


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk