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 /crypto | |
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 'crypto')
-rw-r--r-- | crypto/CMakeLists.txt | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 7adb31c..75db747 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
@@ -1003,21 +1003,6 @@ target_include_directories(crypto_obj | |||
1003 | ../include) | 1003 | ../include) |
1004 | 1004 | ||
1005 | add_library(crypto $<TARGET_OBJECTS:crypto_obj>) | 1005 | add_library(crypto $<TARGET_OBJECTS:crypto_obj>) |
1006 | target_include_directories(crypto | ||
1007 | PRIVATE | ||
1008 | . | ||
1009 | asn1 | ||
1010 | bn | ||
1011 | dsa | ||
1012 | ec | ||
1013 | ecdh | ||
1014 | ecdsa | ||
1015 | evp | ||
1016 | modes | ||
1017 | x509 | ||
1018 | ../include/compat | ||
1019 | PUBLIC | ||
1020 | ../include) | ||
1021 | 1006 | ||
1022 | export_symbol(crypto ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym) | 1007 | export_symbol(crypto ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym) |
1023 | target_link_libraries(crypto ${PLATFORM_LIBS}) | 1008 | target_link_libraries(crypto ${PLATFORM_LIBS}) |
@@ -1042,21 +1027,6 @@ endif(ENABLE_LIBRESSL_INSTALL) | |||
1042 | # build static library for regression test | 1027 | # build static library for regression test |
1043 | if(BUILD_SHARED_LIBS) | 1028 | if(BUILD_SHARED_LIBS) |
1044 | add_library(crypto-static STATIC $<TARGET_OBJECTS:crypto_obj>) | 1029 | add_library(crypto-static STATIC $<TARGET_OBJECTS:crypto_obj>) |
1045 | target_include_directories(crypto-static | ||
1046 | PRIVATE | ||
1047 | . | ||
1048 | asn1 | ||
1049 | bn | ||
1050 | dsa | ||
1051 | ec | ||
1052 | ecdh | ||
1053 | ecdsa | ||
1054 | evp | ||
1055 | modes | ||
1056 | x509 | ||
1057 | ../include/compat | ||
1058 | PUBLIC | ||
1059 | ../include) | ||
1060 | target_link_libraries(crypto-static ${PLATFORM_LIBS}) | 1030 | target_link_libraries(crypto-static ${PLATFORM_LIBS}) |
1061 | endif() | 1031 | endif() |
1062 | 1032 | ||