diff options
author | Brent Cook <bcook@openbsd.org> | 2018-05-29 05:44:34 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2018-05-29 05:46:54 -0500 |
commit | 4fcfc82d83de32098530abfa3aff5d6fc5532433 (patch) | |
tree | 449adaa04fdd66b065fb9ffd4f58912d398c03ca /tls | |
parent | 9b4044d8edce19f72649ba2960a54d57373b84b5 (diff) | |
download | portable-4fcfc82d83de32098530abfa3aff5d6fc5532433.tar.gz portable-4fcfc82d83de32098530abfa3aff5d6fc5532433.tar.bz2 portable-4fcfc82d83de32098530abfa3aff5d6fc5532433.zip |
scope private/public headers when embedding into other projects
thanks to Cameron Palmer
Diffstat (limited to 'tls')
-rw-r--r-- | tls/CMakeLists.txt | 13 |
1 files changed, 7 insertions, 6 deletions
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 @@ | |||
1 | include_directories( | ||
2 | . | ||
3 | ../include | ||
4 | ../include/compat | ||
5 | ) | ||
6 | |||
7 | set( | 1 | set( |
8 | TLS_SRC | 2 | TLS_SRC |
9 | tls.c | 3 | tls.c |
@@ -37,6 +31,13 @@ else() | |||
37 | endif() | 31 | endif() |
38 | 32 | ||
39 | add_library(tls ${TLS_SRC}) | 33 | add_library(tls ${TLS_SRC}) |
34 | target_include_directories(tls | ||
35 | PRIVATE | ||
36 | . | ||
37 | PUBLIC | ||
38 | ../include | ||
39 | ../include/compat) | ||
40 | |||
40 | if (BUILD_SHARED_LIBS) | 41 | if (BUILD_SHARED_LIBS) |
41 | export_symbol(tls ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym) | 42 | export_symbol(tls ${CMAKE_CURRENT_SOURCE_DIR}/tls.sym) |
42 | target_link_libraries(tls ssl crypto) | 43 | target_link_libraries(tls ssl crypto) |