Browse Source

build: update md5 repo

legacy
Dnomd343 9 months ago
parent
commit
1f50e2c992
  1. 6
      src/core_test/ffi/all_cases.cc
  2. 2
      third_party/ThirdParty.cmake
  3. 2
      third_party/md5sum

6
src/core_test/ffi/all_cases.cc

@ -2,13 +2,13 @@
#include <string> #include <string>
#include <thread> #include <thread>
#include "md5sum.h" #include "md5.h"
#include "exposer.h" #include "exposer.h"
#include "klotski.h" #include "klotski.h"
#include "all_cases.h" #include "all_cases.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
using md5::md5sum; using md5::MD5;
using klotski::cases::AllCases; using klotski::cases::AllCases;
using klotski::cases::BasicRanges; using klotski::cases::BasicRanges;
@ -179,5 +179,5 @@ TEST(AllCases, all_cases_export) {
all_cases_str += tmp; all_cases_str += tmp;
} }
} }
EXPECT_EQ(md5sum(all_cases_str), ALL_CASES_MD5); EXPECT_EQ(MD5::Hash(all_cases_str), ALL_CASES_MD5);
} }

2
third_party/ThirdParty.cmake

@ -19,8 +19,8 @@ if (KLOTSKI_ENABLE_TESTING)
add_library(bs::thread_pool ALIAS thread_pool) add_library(bs::thread_pool ALIAS thread_pool)
# md5sum implementation # md5sum implementation
set(MD5_ENABLE_LTO OFF)
add_subdirectory(${KLOTSKI_THIRD_PARTY}/md5sum EXCLUDE_FROM_ALL) add_subdirectory(${KLOTSKI_THIRD_PARTY}/md5sum EXCLUDE_FROM_ALL)
target_include_directories(md5sum INTERFACE ${KLOTSKI_THIRD_PARTY}/md5sum)
# google test framework # google test framework
add_subdirectory(${KLOTSKI_THIRD_PARTY}/googletest EXCLUDE_FROM_ALL) add_subdirectory(${KLOTSKI_THIRD_PARTY}/googletest EXCLUDE_FROM_ALL)

2
third_party/md5sum

@ -1 +1 @@
Subproject commit d58aa1e4eacff0e6086fe13ed435643b412d4c33 Subproject commit 1b0c39ad37ec147640e0bbd4a22c7ce8f09d915b
Loading…
Cancel
Save