find_library(BLAKE3_LIBRARY blake3)
if(BLAKE3_INCLUDE_DIR)
file(READ "${BLAKE3_INCLUDE_DIR}/blake3.h" _blake3_h)
- string(REGEX MATCH "#define _blake3_version_string \"([0-9]+).([0-9]+).*([0-9]+)\"" _ "${_blake3_h}")
+ string(REGEX MATCH "#define BLAKE3_VERSION_STRING \"([0-9]+).([0-9]+).*([0-9]+)\"" _ "${_blake3_h}")
set(_blake3_version_string "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}.${CMAKE_MATCH_3}")
if(NOT "${CMAKE_MATCH_0}" STREQUAL "" AND "${_blake3_version_string}" VERSION_GREATER_EQUAL "${Blake3_FIND_VERSION}")
if(BLAKE3_LIBRARY)
#include <ccache/util/PathString.hpp>
#include <ccache/util/conversion.hpp>
-#include <blake3/blake3.h>
#include <nonstd/span.hpp>
#include <tl/expected.hpp>
+#include <blake3.h>
+
#include <array>
#include <cstdint>
#include <cstdio>
"${CMAKE_CURRENT_SOURCE_DIR}/blake3/blake3_portable.c"
)
-target_include_directories(dep_blake3 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
+target_include_directories(dep_blake3 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/blake3")
target_link_libraries(dep_blake3 PRIVATE standard_settings)
if(MSVC)