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


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
"//". 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?

Jim Gallagher

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at