From 7132b75ffb759659861319f0c336e70350d95108 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 11 Sep 2021 15:10:35 +0200 Subject: [PATCH] build: Don't copy crypto header but just overwrite includes --- external/yara/CMakeLists.txt | 6 +----- external/yara/{crypto_mbedtls.h => crypto.h} | 0 2 files changed, 1 insertion(+), 5 deletions(-) rename external/yara/{crypto_mbedtls.h => crypto.h} (100%) diff --git a/external/yara/CMakeLists.txt b/external/yara/CMakeLists.txt index 553ab41f2..a39b3cb03 100644 --- a/external/yara/CMakeLists.txt +++ b/external/yara/CMakeLists.txt @@ -94,10 +94,6 @@ set(LIBYARA_MODULES ${LIBYARA_SOURCE_PATH}/modules/magic/magic.c) # Add mbedtls crypto wrappers -add_custom_command( - OUTPUT ${LIBYARA_SOURCE_PATH}/crypto.h - COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/crypto_mbedtls.h ${LIBYARA_SOURCE_PATH}/crypto.h - MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/crypto_mbedtls.h) add_compile_definitions("HAVE_MBEDTLS") add_compile_definitions("USE_NO_PROC") @@ -114,7 +110,7 @@ add_library(libyara STATIC ${LIBYARA_SOURCE} ${LIBYARA_INCLUDES} ${LIBYARA_MODUL target_include_directories( libyara - PUBLIC $ $ + PUBLIC $ $ $ PRIVATE ${LIBYARA_SOURCE_PATH} ${MBEDTLS_INCLUDE_DIR} ) diff --git a/external/yara/crypto_mbedtls.h b/external/yara/crypto.h similarity index 100% rename from external/yara/crypto_mbedtls.h rename to external/yara/crypto.h