3
我已經在我的項目boost_iostreams,它依賴於bzip2的和zlib項目。因此運行添加-L中的bjam
export LIBRARY_PATH=/apps/bzip2/lib:/apps/zlib/lib
,然後運行bjam link=static
作品。
有沒有一種方法,設置這個在Jamroot中,這樣不需要環境變量?
當前Jamroot中:
project infracore
: requirements
<include>$(PROJECT_ROOT)_install
<include>$(BOOST_INCLUDE_BASE)
<include>$(BZIP2_INCLUDE_BASE)
<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
<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