Closed PierreQuebriac closed 1 year ago
Hi! Not sure, if that could be an issue, but the option name is actually WITH_OPENSSL
(all uppercase): https://github.com/ClickHouse/clickhouse-cpp/blob/master/CMakeLists.txt#L12
Hi, the conan recipe use this uppercase option but its own option is lower case: conan option
I found a solution to fix my problem In order to make option from conan to work with cmake, one need to CACHE the options in the CMakeList.txt
Here is an example on how to change the line 12 of the CMakeList.txt to make this work:
option(WITH_OPENSSL "Enable OpenSSL" OFF CACHE BOOL "Enable OpenSSL support")
@Enmk current issue closed by https://github.com/conan-io/conan-center-index/pull/19449
Hi, I am trying clickhouse for a robot monitoring project and I consider using the cloud service. But I want to use the SSL encryption before that. My whole project is build with the help of Conan2. And despite the fact that the option with_openssl is set to true and passed correctly to the clickhouse conan recipe, the execution of a simple code with SSL active throw the error: Library was built with no SSL support.
Here is a part of the conan recipe I use :
And here is the piece of code that set the client options that throw the error:
Am I missing an option or do I set incorrectly the options ?
Thank you for the great work and for the help !