I'm working on a script that clones Boost official repository and init only the modules I need.
I read git submodule man page, and found a way to update only some modules. I don't even need to compile because I'm only using multi_index.
git clone -b boost-1.60.0 https://github.com/boostorg/boost.git boost
cd boost
git submodule update --init libs/multi_index/ tools/build
But I would like to improve my git submodule update
command by using module names (e.g. multi_index
found in .gitsubmodules
) instead of path (e.g. libs\multi_index
)
How can I achieve that ?
Also, when I want to use that setup, boost/version.hpp
is missing.
I executed boostrap.sh
and ./b2 --with-multi_index
but it replied with error: wrong library name 'multi_index' in the --with-<library> option.
How can I generate boost/version.hpp
that CMake
find_package(Boost REQUIRED)
requires ?
CMake Error at /usr/share/cmake-3.0/Modules/FindBoost.cmake:699 (file): file STRINGS file "/home/leflou/PROJECTS/tradingsuite/FinancialMarket/Server/boost/libs/boost/version.hpp" cannot be read. Call Stack (most recent call first): FinancialMarket/Server/CMakeLists.txt:5 (find_package)