diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2021-12-04 10:49:59 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2021-12-04 14:36:39 +0900 |
commit | c211d97ecb351254a1020f2a9eecd47e65ad5484 (patch) | |
tree | 49a84019df276ce5d3cc552890dcb24cd8503133 /apps | |
parent | f2026bb3246cb45bb2fe0d3d93461149862d8d0b (diff) | |
download | portable-c211d97ecb351254a1020f2a9eecd47e65ad5484.tar.gz portable-c211d97ecb351254a1020f2a9eecd47e65ad5484.tar.bz2 portable-c211d97ecb351254a1020f2a9eecd47e65ad5484.zip |
Remove unneeded target_include_directories with cmake
This could remove recurring of the same statement for include directories.
Instead of this removals, apps/* and tests should have include path that
had been provided by INTERFACE_INCLUDE_DIRECTORIES of target libs and
internal static libs.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/nc/CMakeLists.txt | 1 | ||||
-rw-r--r-- | apps/ocspcheck/CMakeLists.txt | 1 | ||||
-rw-r--r-- | apps/openssl/CMakeLists.txt | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt index a241637..e873de8 100644 --- a/apps/nc/CMakeLists.txt +++ b/apps/nc/CMakeLists.txt | |||
@@ -44,6 +44,7 @@ else() | |||
44 | endif() | 44 | endif() |
45 | 45 | ||
46 | add_executable(nc ${NC_SRC}) | 46 | add_executable(nc ${NC_SRC}) |
47 | target_include_directories(nc PUBLIC ../../include) | ||
47 | target_include_directories(nc PRIVATE . ./compat ../../include/compat) | 48 | target_include_directories(nc PRIVATE . ./compat ../../include/compat) |
48 | target_link_libraries(nc ${LIBTLS_LIBS}) | 49 | target_link_libraries(nc ${LIBTLS_LIBS}) |
49 | 50 | ||
diff --git a/apps/ocspcheck/CMakeLists.txt b/apps/ocspcheck/CMakeLists.txt index 43b091a..249f0f4 100644 --- a/apps/ocspcheck/CMakeLists.txt +++ b/apps/ocspcheck/CMakeLists.txt | |||
@@ -28,6 +28,7 @@ else() | |||
28 | endif() | 28 | endif() |
29 | 29 | ||
30 | add_executable(ocspcheck ${OCSPCHECK_SRC}) | 30 | add_executable(ocspcheck ${OCSPCHECK_SRC}) |
31 | target_include_directories(ocspcheck PUBLIC ../../include) | ||
31 | target_include_directories(ocspcheck PRIVATE . ./compat ../../include/compat) | 32 | target_include_directories(ocspcheck PRIVATE . ./compat ../../include/compat) |
32 | target_link_libraries(ocspcheck tls ${OPENSSL_LIBS}) | 33 | target_link_libraries(ocspcheck tls ${OPENSSL_LIBS}) |
33 | 34 | ||
diff --git a/apps/openssl/CMakeLists.txt b/apps/openssl/CMakeLists.txt index c5cfbe2..bb058e1 100644 --- a/apps/openssl/CMakeLists.txt +++ b/apps/openssl/CMakeLists.txt | |||
@@ -77,6 +77,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin") | |||
77 | endif() | 77 | endif() |
78 | 78 | ||
79 | add_executable(openssl ${OPENSSL_SRC}) | 79 | add_executable(openssl ${OPENSSL_SRC}) |
80 | target_include_directories(openssl PUBLIC ../../include) | ||
80 | target_include_directories(openssl PRIVATE . ../../include/compat) | 81 | target_include_directories(openssl PRIVATE . ../../include/compat) |
81 | target_link_libraries(openssl ${OPENSSL_LIBS}) | 82 | target_link_libraries(openssl ${OPENSSL_LIBS}) |
82 | 83 | ||