From c211d97ecb351254a1020f2a9eecd47e65ad5484 Mon Sep 17 00:00:00 2001 From: kinichiro Date: Sat, 4 Dec 2021 10:49:59 +0900 Subject: 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. --- crypto/CMakeLists.txt | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'crypto') 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 ../include) add_library(crypto $) -target_include_directories(crypto - PRIVATE - . - asn1 - bn - dsa - ec - ecdh - ecdsa - evp - modes - x509 - ../include/compat - PUBLIC - ../include) export_symbol(crypto ${CMAKE_CURRENT_BINARY_DIR}/crypto_p.sym) target_link_libraries(crypto ${PLATFORM_LIBS}) @@ -1042,21 +1027,6 @@ endif(ENABLE_LIBRESSL_INSTALL) # build static library for regression test if(BUILD_SHARED_LIBS) add_library(crypto-static STATIC $) - target_include_directories(crypto-static - PRIVATE - . - asn1 - bn - dsa - ec - ecdh - ecdsa - evp - modes - x509 - ../include/compat - PUBLIC - ../include) target_link_libraries(crypto-static ${PLATFORM_LIBS}) endif() -- cgit v1.2.3-55-g6feb