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 /tls | |
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 'tls')
-rw-r--r-- | tls/CMakeLists.txt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt index 17aedf0..15e5127 100644 --- a/tls/CMakeLists.txt +++ b/tls/CMakeLists.txt | |||
@@ -48,12 +48,6 @@ target_include_directories(tls_obj | |||
48 | 48 | ||
49 | add_library(tls $<TARGET_OBJECTS:tls_obj> $<TARGET_OBJECTS:ssl_obj> | 49 | add_library(tls $<TARGET_OBJECTS:tls_obj> $<TARGET_OBJECTS:ssl_obj> |
50 | $<TARGET_OBJECTS:crypto_obj>) | 50 | $<TARGET_OBJECTS:crypto_obj>) |
51 | target_include_directories(tls | ||
52 | PRIVATE | ||
53 | . | ||
54 | ../include/compat | ||
55 | PUBLIC | ||
56 | ../include) | ||
57 | 51 | ||
58 | export_symbol(tls ${CMAKE_CURRENT_BINARY_DIR}/tls.sym) | 52 | export_symbol(tls ${CMAKE_CURRENT_BINARY_DIR}/tls.sym) |
59 | target_link_libraries(tls ${PLATFORM_LIBS}) | 53 | target_link_libraries(tls ${PLATFORM_LIBS}) |
@@ -79,12 +73,6 @@ endif(ENABLE_LIBRESSL_INSTALL) | |||
79 | if(BUILD_SHARED_LIBS) | 73 | if(BUILD_SHARED_LIBS) |
80 | add_library(tls-static STATIC $<TARGET_OBJECTS:tls_obj> | 74 | add_library(tls-static STATIC $<TARGET_OBJECTS:tls_obj> |
81 | $<TARGET_OBJECTS:ssl_obj> $<TARGET_OBJECTS:crypto_obj>) | 75 | $<TARGET_OBJECTS:ssl_obj> $<TARGET_OBJECTS:crypto_obj>) |
82 | target_include_directories(tls-static | ||
83 | PRIVATE | ||
84 | . | ||
85 | ../include/compat | ||
86 | PUBLIC | ||
87 | ../include) | ||
88 | target_link_libraries(tls-static ${PLATFORM_LIBS}) | 76 | target_link_libraries(tls-static ${PLATFORM_LIBS}) |
89 | endif() | 77 | endif() |
90 | 78 | ||