Changing the pip install command in cmake.sh to install conan<2.0 fixed it. Since Conan 2.0 is relatively fresh (https://blog.conan.io/2023/02/22/Conan-2.0.html), it appears centreon-clib has not been migrated to it yet. We should either fix the pip install line, or migrate to Conan 2.0.
While trying to build centreon-clib from sources on AlmaLinux 9, the build failed with:
Quickly searching for this led me to https://stackoverflow.com/questions/75794398/conan-returning-error-invalid-generator-cmake-when-running-conan-install
Changing the pip install command in cmake.sh to install conan<2.0 fixed it. Since Conan 2.0 is relatively fresh (https://blog.conan.io/2023/02/22/Conan-2.0.html), it appears centreon-clib has not been migrated to it yet. We should either fix the pip install line, or migrate to Conan 2.0.