Skip to content

Commit 979c967

Browse files
committed
Added cmake log output for found Boost library and OpenSSL.
Added the vcpkg.json for building the project using vcpkg.
1 parent 5d6dec8 commit 979c967

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ else()
9494
find_package(Boost 1.71 REQUIRED COMPONENTS thread chrono)
9595
endif()
9696

97+
if (Boost_FOUND)
98+
message(STATUS "Boost version: ${Boost_VERSION}")
99+
message(STATUS "Boost include directory: ${Boost_INCLUDE_DIRS}")
100+
message(STATUS "Boost libraries: ${Boost_LIBRARIES}")
101+
else()
102+
message(FATAL_ERROR "Boost not found!")
103+
endif()
104+
97105
# find OpenSSL if building WITH_OPENSSL
98106
if (WITH_OPENSSL)
99107
if (APPLE)
@@ -104,6 +112,14 @@ if (WITH_OPENSSL)
104112
endif ()
105113

106114
find_package(OpenSSL REQUIRED)
115+
116+
if (OpenSSL_FOUND)
117+
message(STATUS "OpenSSL version: ${OpenSSL_VERSION}")
118+
message(STATUS "OpenSSL include directory: ${OPENSSL_INCLUDE_DIR}")
119+
message(STATUS "OpenSSL libraries: ${OPENSSL_LIBRARIES}")
120+
else()
121+
message(FATAL_ERROR "OpenSSL not found!")
122+
endif()
107123
endif ()
108124

109125
# add the library target

vcpkg.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
3+
"name": "hazelcast-cpp-client",
4+
"version": "5.5.0",
5+
"dependencies": [
6+
"boost-any",
7+
"boost-asio",
8+
"boost-chrono",
9+
"boost-format",
10+
"boost-optional",
11+
"boost-property-tree",
12+
"boost-system",
13+
"boost-thread",
14+
"boost-uuid"
15+
]
16+
}

0 commit comments

Comments
 (0)