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 --- tls/CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'tls') diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index 6c5303c..a18c24f 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt @@ -1,9 +1,3 @@ -include_directories( - . - ../include - ../include/compat -) - set( TLS_SRC tls.c @@ -37,6 +31,13 @@ else() endif() add_library(tls ${TLS_SRC}) +target_include_directories(tls + PRIVATE + . + PUBLIC + ../include + ../include/compat) + if (BUILD_SHARED_LIBS) export_symbol(tls ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym) target_link_libraries(tls ssl crypto) -- cgit v1.2.3-55-g6feb