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 /ssl | |
| 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 'ssl')
| -rw-r--r-- | ssl/CMakeLists.txt | 13 |
1 files changed, 7 insertions, 6 deletions
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 @@ | |||
| 1 | include_directories( | ||
| 2 | . | ||
| 3 | ../include | ||
| 4 | ../include/compat | ||
| 5 | ) | ||
| 6 | |||
| 7 | set( | 1 | set( |
| 8 | SSL_SRC | 2 | SSL_SRC |
| 9 | bio_ssl.c | 3 | bio_ssl.c |
| @@ -48,6 +42,13 @@ set( | |||
| 48 | ) | 42 | ) |
| 49 | 43 | ||
| 50 | add_library(ssl ${SSL_SRC}) | 44 | add_library(ssl ${SSL_SRC}) |
| 45 | target_include_directories(ssl | ||
| 46 | PRIVATE | ||
| 47 | . | ||
| 48 | PUBLIC | ||
| 49 | ../include | ||
| 50 | ../include/compat) | ||
| 51 | |||
| 51 | if (BUILD_SHARED_LIBS) | 52 | if (BUILD_SHARED_LIBS) |
| 52 | export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) | 53 | export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) |
| 53 | target_link_libraries(ssl crypto) | 54 | target_link_libraries(ssl crypto) |
