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