Skip to content

Commit 9b30d67

Browse files
authored
Merge pull request #454 from accelerated/master
Add openssl to the required library list in pkg_config file
2 parents 50acc6a + 1b8fbcf commit 9b30d67

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ if(CASS_BUILD_STATIC)
147147
endif()
148148
CassConfigureStatic("CASS")
149149

150+
# Set pkg_config required libraries
151+
set(PC_REQUIRED_LIBS "libuv")
152+
if (CASS_USE_OPENSSL)
153+
set(PC_REQUIRED_LIBS "${PC_REQUIRED_LIBS} openssl")
154+
endif()
155+
150156
# Update the test flags to indicate the use of the static library
151157
if(CASS_USE_STATIC_LIBS)
152158
set(TEST_CXX_FLAGS "${TEST_CXX_FLAGS} -DCASS_STATIC")

packaging/cassandra_static.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ includedir=@includedir@
66
Name: cassandra
77
Description: A C/C++ client driver for Apache Cassandra
88
Version: @version@
9-
Requires: libuv
9+
Requires: @PC_REQUIRED_LIBS@
1010
Libs: -L${libdir} -l@PROJECT_LIB_NAME_STATIC@ -lstdc++
1111
Cflags:
1212
URL: https://github.com/datastax/cpp-driver/

0 commit comments

Comments
 (0)