if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON)
else ()
OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" OFF)
endif ()
This block of CMake is problematic for those who want to use industry standard package management schemes like conan. Conan-center added the ability to enable drafts in the cppzmq package in this PR, however the above block of CMake breaks that functionality, making it impossible to get a draft build of cppzmq (and by extension libzmq) without building and installing manually from source, which is problematic in a number of ways in the modern software development landscape.
One potential solution is for this block to be changed such that ENABLE_DRAFTS is only configured in this way if it is not already turned on, or for this to simply be removed all together.
This block of CMake is problematic for those who want to use industry standard package management schemes like conan. Conan-center added the ability to enable drafts in the cppzmq package in this PR, however the above block of CMake breaks that functionality, making it impossible to get a draft build of cppzmq (and by extension libzmq) without building and installing manually from source, which is problematic in a number of ways in the modern software development landscape.
One potential solution is for this block to be changed such that ENABLE_DRAFTS is only configured in this way if it is not already turned on, or for this to simply be removed all together.