2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

Don't generate empty -F if framework is specified without path.

Patch from Sohail Somani.


[SVN r58371]
This commit is contained in:
Vladimir Prus
2009-12-14 06:50:05 +00:00
parent d6f5f0bf72
commit ef5f69c032

View File

@@ -497,12 +497,15 @@ local rule prepare-framework-path ( target + )
# The -F option specifies the directories where a framework
# is searched for. So, if we find <framework> feature
# with some path, we need to generate property -F option.
local framework-path = [ on $(target) return $(FRAMEWORK:D) ] ;
local framework-paths = [ on $(target) return $(FRAMEWORK:D) ] ;
# Be sure to generate no -F if there's no path.
if $(framework-path) != ""
for local framework-path in $(framework-paths)
{
FRAMEWORK_PATH on $(target) += -F$(framework-path) ;
if $(framework-path) != ""
{
FRAMEWORK_PATH on $(target) += -F$(framework-path) ;
}
}
}