From 4fcfc82d83de32098530abfa3aff5d6fc5532433 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Tue, 29 May 2018 05:44:34 -0500 Subject: scope private/public headers when embedding into other projects thanks to Cameron Palmer --- ssl/CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'ssl') diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index e87e0f6..44e5265 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt @@ -1,9 +1,3 @@ -include_directories( - . - ../include - ../include/compat -) - set( SSL_SRC bio_ssl.c @@ -48,6 +42,13 @@ set( ) add_library(ssl ${SSL_SRC}) +target_include_directories(ssl + PRIVATE + . + PUBLIC + ../include + ../include/compat) + if (BUILD_SHARED_LIBS) export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) target_link_libraries(ssl crypto) -- cgit v1.2.3-55-g6feb