Skip to content

Commit ae0deda

Browse files
committed
Add crypto & boost system as extra dependencies
1 parent c76b8fc commit ae0deda

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ project(cpprest C CXX)
44

55
find_package(Threads REQUIRED)
66

7+
set(cpprest_extras_LIBRARIES crypto boost_system)
8+
79
catkin_package(
810
INCLUDE_DIRS
911
Release/include
1012
Release/libs/websocketpp
1113
LIBRARIES
1214
cpprest
13-
DEPENDS)
15+
DEPENDS cpprest_extras)
1416

1517
set(CPPREST_INSTALL_HEADERS ON CACHE BOOL "Enable system header install" FORCE)
1618
set(CPPREST_INSTALL ON CACHE BOOL "Disable system library install" FORCE)

Release/cmake/cpprest_find_openssl.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function(cpprest_find_openssl)
4848
pkg_search_module(OPENSSL openssl)
4949
endif()
5050
if(OPENSSL_FOUND)
51-
target_link_libraries(cpprest PRIVATE ${OPENSSL_LDFLAGS})
51+
target_link_libraries(cpprest INTERFACE ${OPENSSL_LDFLAGS})
5252
else()
5353
find_package(OpenSSL 1.0.0 REQUIRED)
5454
endif()

0 commit comments

Comments
 (0)