From 2b73e7216ee30a725af4e44e5ab95e53f0fdffcc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 6 Jun 2026 01:00:45 +0200 Subject: fix builds w/ modern MinGW --- aesxx/CMakeLists.txt | 6 +++++- aesxx/include/aesxx/debug.hpp | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/aesxx/CMakeLists.txt b/aesxx/CMakeLists.txt index 2c4a9a5..0f814b8 100644 --- a/aesxx/CMakeLists.txt +++ b/aesxx/CMakeLists.txt @@ -2,7 +2,11 @@ find_package(Boost REQUIRED) add_library(aesxx INTERFACE) target_include_directories(aesxx INTERFACE include/) -target_link_libraries(aesxx INTERFACE aes Boost::disable_autolinking Boost::boost) +target_link_libraries(aesxx INTERFACE + aes + dbghelp + Boost::disable_autolinking + Boost::boost) if(MSVC_VERSION EQUAL 1900) # These annoying DbgHelp.h warnings: diff --git a/aesxx/include/aesxx/debug.hpp b/aesxx/include/aesxx/debug.hpp index 96e81b5..d7d5d15 100644 --- a/aesxx/include/aesxx/debug.hpp +++ b/aesxx/include/aesxx/debug.hpp @@ -7,8 +7,8 @@ #ifdef WIN32 #include -#include -#pragma comment(lib, "DbgHelp.Lib") +#include +#pragma comment(lib, "dbghelp.lib") #endif #include -- cgit v1.3