@@ -488,7 +488,7 @@ rule generate-cmake-variant- ( target : sources * : properties * )
488488 print.text
489489
490490 "set_target_properties($(target) PROPERTIES"
491- " IMPORTED_LOCATION_$(variant:U) \"${_BOOST_LIBDIR }/$(dll-name)\""
491+ " IMPORTED_LOCATION_$(variant:U) \"${_BOOST_BINDIR }/$(dll-name)\""
492492 " )"
493493 ""
494494 : true ;
@@ -770,6 +770,10 @@ rule make-cmake-config ( target : sources * : properties * )
770770 libdir = [ path.relative-to $(cmakedir) $(libdir) ] ;
771771 .info " libdir=" $(libdir) ;
772772
773+ local bindir = [ stage.get-dir bindir : $(ps) : Boost ] ;
774+ bindir = [ path.relative-to $(cmakedir) $(bindir) ] ;
775+ .info " bindir=" $(bindir) ;
776+
773777 local lname = [ MATCH boost_(.*) : $(name) ] ;
774778 .info " lname=" $(lname) ;
775779
@@ -837,6 +841,7 @@ rule make-cmake-config ( target : sources * : properties * )
837841 else
838842 {
839843 get-dir "_BOOST_LIBDIR" : $(libdir) ;
844+ get-dir "_BOOST_BINDIR" : $(bindir) ;
840845
841846 print.text
842847
@@ -869,6 +874,7 @@ rule make-cmake-config ( target : sources * : properties * )
869874 "endforeach()"
870875 ""
871876 "unset(_BOOST_SINGLE_VARIANT)"
877+ "unset(_BOOST_BINDIR)"
872878 "unset(_BOOST_LIBDIR)"
873879 "unset(_BOOST_INCLUDEDIR)"
874880 "unset(_BOOST_CMAKEDIR)"
@@ -1060,8 +1066,9 @@ rule install-or-stage-cmake-config ( name * : install-or-stage )
10601066 if $(install-or-stage) = stage
10611067 {
10621068 local libdir = [ boost-install-dirs.stage-libdir ] ;
1069+ local bindir = [ boost-install-dirs.stage-bindir ] ;
10631070 local includedir = [ boost-install-dirs.stage-includedir ] ;
1064- reqs = <install-libdir>$(libdir) <install-includedir>$(includedir) ;
1071+ reqs = <install-libdir>$(libdir) <install-bindir>$(bindir) <install- includedir>$(includedir) ;
10651072 }
10661073 else
10671074 {
0 commit comments