Skip to content

Cmake log output for found dependent libraries OpenSSL and Boost, Add vcpkg.json [DEX-431] #1320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
16 changes: 16 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
Loading