Reconfiguring with boostrap.py (running it a second time with different options) does not work as expected
Deleting the build
folder before running boostrap.py
was a bad idea since a lot of effort could have been put in configuring the project (especially on Windows). But now the CMakeCache.txt
stays between to runs of boostrap.py
.
If one enable a camera in the first run and then disable it in the second run, the camera stay enabled. boostrap.py
should set the camera that was given on the command line to ON
but all the other ones to OFF
. For exemple:
./install.sh simulator
should generate
cmake ... -DLIMA_CAMERA_SIMULATOR=1 -DLIMA_CAMERA_RAYONIXHS=0 -DLIMA_CAMERA_BASLER=0 ...
Similar issue with git, e.g. reconfiguring with new cameras or options will not init/update their submodules.
Ultimate question, is this wrapper necessary? I build and install the conda packages with these two lines:
cmake -Bbuild -H. -DCMAKE_INSTALL_PREFIX=$PREFIX -DPYTHON_SITE_PACKAGES_DIR=$SP_DIR -DCMAKE_FIND_ROOT_PATH=$PREFIX
cmake --build build --target install
See https://github.com/esrf-bliss/Lima/issues/71#issuecomment-407371593 for the context.