From 979c967c92847d5605b64c829097d02a1338a608 Mon Sep 17 00:00:00 2001 From: ihsan Date: Mon, 14 Jul 2025 15:22:24 +0300 Subject: [PATCH 1/2] Added cmake log output for found Boost library and OpenSSL. Added the vcpkg.json for building the project using vcpkg. --- CMakeLists.txt | 16 ++++++++++++++++ vcpkg.json | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 vcpkg.json diff --git a/CMakeLists.txt b/CMakeLists.txt index 995ae425a..48b4bc4db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,6 +94,14 @@ else() find_package(Boost 1.71 REQUIRED COMPONENTS thread chrono) endif() +if (Boost_FOUND) + message(STATUS "Boost version: ${Boost_VERSION}") + message(STATUS "Boost include directory: ${Boost_INCLUDE_DIRS}") + message(STATUS "Boost libraries: ${Boost_LIBRARIES}") +else() + message(FATAL_ERROR "Boost not found!") +endif() + # find OpenSSL if building WITH_OPENSSL if (WITH_OPENSSL) if (APPLE) @@ -104,6 +112,14 @@ if (WITH_OPENSSL) endif () find_package(OpenSSL REQUIRED) + + if (OpenSSL_FOUND) + message(STATUS "OpenSSL version: ${OpenSSL_VERSION}") + message(STATUS "OpenSSL include directory: ${OPENSSL_INCLUDE_DIR}") + message(STATUS "OpenSSL libraries: ${OPENSSL_LIBRARIES}") + else() + message(FATAL_ERROR "OpenSSL not found!") + endif() endif () # add the library target diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 000000000..82f5de33e --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", + "name": "hazelcast-cpp-client", + "version": "5.5.0", + "dependencies": [ + "boost-any", + "boost-asio", + "boost-chrono", + "boost-format", + "boost-optional", + "boost-property-tree", + "boost-system", + "boost-thread", + "boost-uuid" + ] +} \ No newline at end of file From ad9bc1aaecf82bf102c0953914a3fbe503c33aeb Mon Sep 17 00:00:00 2001 From: ihsan Date: Thu, 17 Jul 2025 12:20:17 +0300 Subject: [PATCH 2/2] Review comment fix. Added versions for dependencies. --- Reference_Manual.md.in | 2 +- vcpkg.json | 63 +++++++++++++++++++++++++++++++++++------- 2 files changed, 54 insertions(+), 11 deletions(-) diff --git a/Reference_Manual.md.in b/Reference_Manual.md.in index 10f8e114d..0ad629446 100644 --- a/Reference_Manual.md.in +++ b/Reference_Manual.md.in @@ -244,7 +244,7 @@ This generates the `conanbuildinfo.cmake` file to be included in your CMakeLists 1. Linux, macOS or Windows 2. A compiler that supports C++11 3. [CMake](https://cmake.org) 3.10 or above -4. [Boost](https://www.boost.org) 1.71 or above. Minimum boost version is upgraded to 1.73 for Windows due to [this](https://github.com/chriskohlhoff/asio/issues/431) bug. +4. [Boost](https://www.boost.org) 1.73 or above. 5. [OpenSSL](https://www.openssl.org) (optional) #### 1.1.3.2. Downloading Source Code diff --git a/vcpkg.json b/vcpkg.json index 82f5de33e..bb587099e 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -3,14 +3,57 @@ "name": "hazelcast-cpp-client", "version": "5.5.0", "dependencies": [ - "boost-any", - "boost-asio", - "boost-chrono", - "boost-format", - "boost-optional", - "boost-property-tree", - "boost-system", - "boost-thread", - "boost-uuid" - ] + { + "name": "boost-any", + "version>=": "1.73.0" + }, + { + "name": "boost-asio", + "version>=": "1.73.0" + }, + { + "name": "boost-chrono", + "version>=": "1.73.0" + }, + { + "name": "boost-any", + "version>=": "1.73.0" + }, + { + "name": "boost-format", + "version>=": "1.73.0" + }, + { + "name": "boost-optional", + "version>=": "1.73.0" + }, + { + "name": "boost-property-tree", + "version>=": "1.73.0" + }, + { + "name": "boost-system", + "version>=": "1.73.0" + }, + { + "name": "boost-thread", + "version>=": "1.73.0" + }, + { + "name": "boost-uuid", + "version>=": "1.73.0" + }, + { + "name": "boost-multiprecision", + "version>=": "1.73.0" + } + ], + "features": { + "build-tests": { + "description": "Enable GTest for building tests", + "dependencies": [ + "gtest" + ] + } + } } \ No newline at end of file