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 all commits
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
2 changes: 1 addition & 1 deletion Reference_Manual.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
59 changes: 59 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "hazelcast-cpp-client",
"version": "5.5.0",
"dependencies": [
{
"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"
]
}
}
}
Loading