Skip to content

Commit 5732b7f

Browse files
author
Michael Fero
committed
Add openssl to the required library list in pkg_config file
1 parent 2bdfc7b commit 5732b7f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ if(DSE_BUILD_STATIC)
210210
endif()
211211
CassConfigureStatic("DSE")
212212

213+
# Set pkg_config required libraries
214+
set(PC_REQUIRED_LIBS "libuv")
215+
if (DSE_USE_OPENSSL)
216+
set(PC_REQUIRED_LIBS "${PC_REQUIRED_LIBS} openssl")
217+
endif()
218+
213219
set_property(TARGET ${PROJECT_LIB_NAME_STATIC} PROPERTY FOLDER "Driver/DSE")
214220
endif()
215221

packaging/dse_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: dse
77
Description: C/C++ client driver for DataStax Enterprise
88
Version: @version@
9-
Requires: libuv
9+
Requires: @PC_REQUIRED_LIBS@
1010
Libs: -L${libdir} -ldse_static -lstdc++
1111
Cflags:
1212
URL: https://github.com/datastax/cpp-driver-dse/

0 commit comments

Comments
 (0)