diff --git a/boost-install.jam b/boost-install.jam index 9d99b79..920445e 100644 --- a/boost-install.jam +++ b/boost-install.jam @@ -438,21 +438,19 @@ rule generate-cmake-variant ( project name : property-set : sources * ) local other-names = [ get-dependency-names $(sources) ] ; property-set = [ $(property-set).add-raw $(other-names) ] ; + local result ; + if $(lib-target) { .debug " lib-target=" [ $(lib-target).name ] ; + + local tag = [ tag $(name) : : $(property-set) ] ; + + local a = [ new non-scanning-action $(lib-target) : boost-install.generate-cmake-variant- : $(property-set) ] ; + + result += [ new file-target $(tag) : : $(project) : $(a) ] ; } - local tag = [ tag $(name) : : $(property-set) ] ; - - #.debug "generate-cmake-variant:" tag is $(tag) ; - - local result ; - - local a = [ new non-scanning-action $(lib-target) : boost-install.generate-cmake-variant- : $(property-set) ] ; - - result += [ new file-target $(tag) : : $(project) : $(a) ] ; - return $(result) ; }