From 1f50e2c992c6a909d4999ac3593cad1d17c21c68 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sun, 31 Mar 2024 17:29:45 +0800 Subject: [PATCH] build: update md5 repo --- src/core_test/ffi/all_cases.cc | 6 +++--- third_party/ThirdParty.cmake | 2 +- third_party/md5sum | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core_test/ffi/all_cases.cc b/src/core_test/ffi/all_cases.cc index 6ae5899..3c4a984 100644 --- a/src/core_test/ffi/all_cases.cc +++ b/src/core_test/ffi/all_cases.cc @@ -2,13 +2,13 @@ #include #include -#include "md5sum.h" +#include "md5.h" #include "exposer.h" #include "klotski.h" #include "all_cases.h" #include "gtest/gtest.h" -using md5::md5sum; +using md5::MD5; using klotski::cases::AllCases; using klotski::cases::BasicRanges; @@ -179,5 +179,5 @@ TEST(AllCases, all_cases_export) { all_cases_str += tmp; } } - EXPECT_EQ(md5sum(all_cases_str), ALL_CASES_MD5); + EXPECT_EQ(MD5::Hash(all_cases_str), ALL_CASES_MD5); } diff --git a/third_party/ThirdParty.cmake b/third_party/ThirdParty.cmake index 6a14bdf..7079ca5 100644 --- a/third_party/ThirdParty.cmake +++ b/third_party/ThirdParty.cmake @@ -19,8 +19,8 @@ if (KLOTSKI_ENABLE_TESTING) add_library(bs::thread_pool ALIAS thread_pool) # md5sum implementation + set(MD5_ENABLE_LTO OFF) add_subdirectory(${KLOTSKI_THIRD_PARTY}/md5sum EXCLUDE_FROM_ALL) - target_include_directories(md5sum INTERFACE ${KLOTSKI_THIRD_PARTY}/md5sum) # google test framework add_subdirectory(${KLOTSKI_THIRD_PARTY}/googletest EXCLUDE_FROM_ALL) diff --git a/third_party/md5sum b/third_party/md5sum index d58aa1e..1b0c39a 160000 --- a/third_party/md5sum +++ b/third_party/md5sum @@ -1 +1 @@ -Subproject commit d58aa1e4eacff0e6086fe13ed435643b412d4c33 +Subproject commit 1b0c39ad37ec147640e0bbd4a22c7ce8f09d915b