roboticslab-uc3m / questions-and-answers

A place for general debate and question&answer
https://robots.uc3m.es/developer-manual/appendix/repository-index.html
2 stars 0 forks source link

Review installation-related snippets in Markdown docs #89

Open jgvictores opened 4 years ago

jgvictores commented 4 years ago

Spawned from https://github.com/roboticslab-uc3m/kinematics-dynamics/issues/187#issuecomment-648767401:

cd's are so old-school, what if:

src=~/repos/kinematics-dynamics/bindings
build=$src/build
mkdir -p $build
cmake -H $src -B $build -DCREATE_PYTHON=ON
make -C $build -j$(nproc)  # compile
sudo make -C $build install
sudo ldconfig
PeterBowman commented 4 years ago

Note the -H (source directory) and -B (build directory) have always been undocumented, internal arguments to cmake (SO). This changed in CMake 3.13 (ref1, ref2) in such a manner that -S (not -H) and -B are now officially documented, but the old -H changed its meaning to a new alias for --help.