Closed artiomn closed 1 year ago
You should be able to override it. Can you try this command before adding subdirectory: set(ENABLE_DRAFTS OFF CACHE BOOL "" FORCE)
You're right. If forgot, that I can do this via CMake cache... But now I'm using ZMQ native C++ interface.
I build my project in the Docker container (on CI), based on the standard gcc-12 image with some additional dependencies. CppZMQ as a package doesn't exist in this version of Debian, ZeroMQ in the package
libzmq3-dev
was built withoutENABLE_DRAFTS
option.And in the CppZMQ build I can't set this option, because one of the developers of CppZMQ implemented a "brilliant" idea: remove this option and check for the existence of the
.git
directory in the CMakeLists.txt.Ok, I've made dirty hack in my CI: remove
.git
directory before the submodule configuration withadd_subdirectory()
. But something was going wrong and I had errors again.I like CppZMQ interface, but I can't build this library on the server CI. What I can do to fix this, except sending this library to the trash and using some alternative?