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.
This commit is contained in:
@@ -44,6 +44,7 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(nc ${NC_SRC})
|
||||
target_include_directories(nc PUBLIC ../../include)
|
||||
target_include_directories(nc PRIVATE . ./compat ../../include/compat)
|
||||
target_link_libraries(nc ${LIBTLS_LIBS})
|
||||
|
||||
|
@@ -28,6 +28,7 @@ else()
|
||||
endif()
|
||||
|
||||
add_executable(ocspcheck ${OCSPCHECK_SRC})
|
||||
target_include_directories(ocspcheck PUBLIC ../../include)
|
||||
target_include_directories(ocspcheck PRIVATE . ./compat ../../include/compat)
|
||||
target_link_libraries(ocspcheck tls ${OPENSSL_LIBS})
|
||||
|
||||
|
@@ -77,6 +77,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
endif()
|
||||
|
||||
add_executable(openssl ${OPENSSL_SRC})
|
||||
target_include_directories(openssl PUBLIC ../../include)
|
||||
target_include_directories(openssl PRIVATE . ../../include/compat)
|
||||
target_link_libraries(openssl ${OPENSSL_LIBS})
|
||||
|
||||
|
Reference in New Issue
Block a user