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 /apps/nc | |
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 'apps/nc')
-rw-r--r-- | apps/nc/CMakeLists.txt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt index 64d14fa..30c1745 100644 --- a/apps/nc/CMakeLists.txt +++ b/apps/nc/CMakeLists.txt | |||
@@ -1,12 +1,5 @@ | |||
1 | if(BUILD_NC) | 1 | if(BUILD_NC) |
2 | 2 | ||
3 | include_directories( | ||
4 | . | ||
5 | ./compat | ||
6 | ../../include | ||
7 | ../../include/compat | ||
8 | ) | ||
9 | |||
10 | set( | 3 | set( |
11 | NC_SRC | 4 | NC_SRC |
12 | atomicio.c | 5 | atomicio.c |
@@ -50,6 +43,7 @@ else() | |||
50 | endif() | 43 | endif() |
51 | 44 | ||
52 | add_executable(nc ${NC_SRC}) | 45 | add_executable(nc ${NC_SRC}) |
46 | target_include_directories(nc PRIVATE . ./compat) | ||
53 | target_link_libraries(nc tls ${OPENSSL_LIBS}) | 47 | target_link_libraries(nc tls ${OPENSSL_LIBS}) |
54 | 48 | ||
55 | if(ENABLE_NC) | 49 | if(ENABLE_NC) |