Boost jam creates fancy static library names such as boost_system-mgw45-mt-d-1_44
, which contain compiler and library version.
Let's assume that I want to distribute application in sources buildable with standard makefile, and user should install The Boost library himself.
Is there any well known ways to determine installed compiler and library version开发者_StackOverflow中文版s to compose static library names?
You could use autoconf
and use the various AX_BOOST_
macros, if you check the autoconf-archive. (The archive is often available from your package manager, I know debian and macports have it). If you also use automake
, then setting --install
in ACLOCAL_AMFLAGS
will copy the macro definitions into your project.
精彩评论