aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aesxx
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-06 01:00:45 +0200
committerEgor Tensin <egor@tensin.name>2026-06-06 01:02:25 +0200
commit2b73e7216ee30a725af4e44e5ab95e53f0fdffcc (patch)
tree29d30d2c74e4ce6a2e9e45d9b8774c233f83f7c5 /aesxx
parentworkflows/ci: remove on: pull_request (diff)
downloadaes-tools-2b73e7216ee30a725af4e44e5ab95e53f0fdffcc.tar.gz
aes-tools-2b73e7216ee30a725af4e44e5ab95e53f0fdffcc.zip
fix builds w/ modern MinGW
Diffstat (limited to 'aesxx')
-rw-r--r--aesxx/CMakeLists.txt6
-rw-r--r--aesxx/include/aesxx/debug.hpp4
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 <windows.h>
-#include <DbgHelp.h>
-#pragma comment(lib, "DbgHelp.Lib")
+#include <dbghelp.h>
+#pragma comment(lib, "dbghelp.lib")
#endif
#include <cstddef>