Skip to content

Commit b5e495a

Browse files
authored
Merge pull request #28 from riptano/CPP-847
CPP-847 - Add CentOS 8 support
2 parents 90a6197 + 8813d4b commit b5e495a

5 files changed

Lines changed: 7 additions & 12 deletions

File tree

build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ schedules:
2121
include: ["/CPP-\\d+/", "master"]
2222
matrix:
2323
exclude:
24-
- os: ['ubuntu/trusty64/cpp', 'ubuntu/xenial64/cpp', 'centos/6-64/cpp', 'centos/7-64/cpp', 'osx/high-sierra']
24+
- os: ['ubuntu/trusty64/cpp', 'ubuntu/xenial64/cpp', 'centos/6-64/cpp', 'centos/7-64/cpp', 'centos/8-64/cpp', 'osx/high-sierra']
2525
env_vars: |
2626
CI_SCHEDULE=nightly
2727
CI_INTEGRATION_ENABLED=true
@@ -33,6 +33,7 @@ os:
3333
- ubuntu/xenial64/cpp
3434
- centos/6-64/cpp
3535
- centos/7-64/cpp
36+
- centos/8-64/cpp
3637
- osx/high-sierra
3738
env:
3839
LIBUV_VERSION: 1.34.0

cmake/Dependencies.cmake

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ if(LIBUV_VERSION VERSION_LESS "1.6")
4040
"memory allocators (version 1.6 or greater required)")
4141
endif()
4242

43-
list(APPEND PC_REQUIRED_LIBS "libuv")
44-
4543
# Assign libuv include and libraries
4644
set(CASS_INCLUDES ${CASS_INCLUDES} ${LIBUV_INCLUDE_DIRS})
4745
set(CASS_LIBS ${CASS_LIBS} ${LIBUV_LIBRARIES})
@@ -103,12 +101,6 @@ if(CASS_USE_OPENSSL)
103101
message(STATUS "${openssl_name} version: v${OPENSSL_VERSION}")
104102
endif()
105103

106-
# FIXME: "openssl" isn't correct
107-
# # Set pkg_config required libraries
108-
# if (CASS_USE_OPENSSL)
109-
# set(PC_REQUIRED_LIBS "${PC_REQUIRED_LIBS} openssl")
110-
# endif()
111-
112104
set(CASS_INCLUDES ${CASS_INCLUDES} ${OPENSSL_INCLUDE_DIR})
113105
set(CASS_LIBS ${CASS_LIBS} ${OPENSSL_LIBRARIES})
114106
endif()

packaging/cassandra.pc.in

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

packaging/cassandra_static.pc.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ includedir=@includedir@
66
Name: cassandra
77
Description: A C/C++ client driver for Apache Cassandra and DataStax Products
88
Version: @version@
9-
Requires: @PC_REQUIRED_LIBS@
10-
Libs: -L${libdir} -l@PROJECT_LIB_NAME_STATIC@ -lstdc++
9+
Requires: libuv
10+
Requires: openssl
11+
Libs: -L${libdir} -lcassandra_static -lstdc++
1112
Cflags:
1213
URL: https://github.com/datastax/cpp-driver/

packaging/debian/cassandra_static.pc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name: cassandra_static
77
Description: A C/C++ client driver for Apache Cassandra and DataStax Products
88
Version: @DEB_VERSION_UPSTREAM@
99
Requires: libuv
10+
Requires: openssl
1011
Libs: -L${libdir} -lcassandra_static -lstdc++
1112
Cflags:
1213
URL: https://github.com/datastax/cpp-driver/

0 commit comments

Comments
 (0)