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 /ssl | |
| 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 'ssl')
| -rw-r--r-- | ssl/CMakeLists.txt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index e4a3d95..039ef68 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
| @@ -63,12 +63,6 @@ target_include_directories(ssl_obj | |||
| 63 | ../include) | 63 | ../include) |
| 64 | 64 | ||
| 65 | add_library(ssl $<TARGET_OBJECTS:ssl_obj>) | 65 | add_library(ssl $<TARGET_OBJECTS:ssl_obj>) |
| 66 | target_include_directories(ssl | ||
| 67 | PRIVATE | ||
| 68 | . | ||
| 69 | ../include/compat | ||
| 70 | PUBLIC | ||
| 71 | ../include) | ||
| 72 | 66 | ||
| 73 | export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) | 67 | export_symbol(ssl ${CMAKE_CURRENT_SOURCE_DIR}/ssl.sym) |
| 74 | target_link_libraries(ssl crypto ${PLATFORM_LIBS}) | 68 | target_link_libraries(ssl crypto ${PLATFORM_LIBS}) |
| @@ -93,12 +87,6 @@ endif(ENABLE_LIBRESSL_INSTALL) | |||
| 93 | # build static library for regression test | 87 | # build static library for regression test |
| 94 | if(BUILD_SHARED_LIBS) | 88 | if(BUILD_SHARED_LIBS) |
| 95 | add_library(ssl-static STATIC $<TARGET_OBJECTS:ssl_obj>) | 89 | add_library(ssl-static STATIC $<TARGET_OBJECTS:ssl_obj>) |
| 96 | target_include_directories(ssl-static | ||
| 97 | PRIVATE | ||
| 98 | . | ||
| 99 | ../include/compat | ||
| 100 | PUBLIC | ||
| 101 | ../include) | ||
| 102 | target_link_libraries(ssl-static crypto-static ${PLATFORM_LIBS}) | 90 | target_link_libraries(ssl-static crypto-static ${PLATFORM_LIBS}) |
| 103 | endif() | 91 | endif() |
| 104 | 92 | ||
