3

我有一个基于 boost iostreams 的项目并 在工作export CPATH=/apps/bzip2/include/ 前执行bjam link=static。有没有办法在 Jamroot 中设置它:

project infracore
        : requirements
          <include>$(PROJECT_ROOT)_install
          <include>$(BOOST_INCLUDE_BASE)
          <include>$(BZIP2_INCLUDE_BASE) #this does not work it seems
          <library>/boost/filesystem//boost_filesystem
          <library>/boost/system//boost_system
          <library>/boost/date_time//boost_date_time
          <library>/boost/iostreams//boost_iostreams
          <variant>debug:<inlining>off
          <variant>debug:<debug-symbols>on
          <variant>debug:<optimization>off
          <variant>debug:<warnings>on
          <variant>release:<warnings>on
          <library-path>/apps/bzip2/lib
          <library-path>/apps/zlib/lib
          <link>static
        ;

# Libraries
build-project UtilsCode ;
build-project ProfilerCode ;
build-project CommonDataStructuresCode ;
build-project Math ;

# Executibles
build-project fixfast ;
build-project Tools ;
build-project RiskConsole ; #u2ic
4

1 回答 1

0

抱歉,从 boost 安装中报告了错误。添加确实有效,只是需要在 boost Jamroot 中完成

于 2011-08-05T19:15:01.013 回答