From e95308605b9734078336b883f9c1daf48df09326 Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 20 Jun 2026 07:15:44 -0300 Subject: [PATCH] build: attempt to fix wolfssl build error --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d1b748..774b252 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,6 @@ cmake_minimum_required(VERSION 3.25.0) set(CMAKE_CXX_STANDARD 20) -add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX) project(hex-unlocked LANGUAGES CXX) set_property(GLOBAL PROPERTY USE_FOLDERS ON) @@ -138,6 +137,7 @@ endif() file(GLOB_RECURSE UNLOCKER_SOURCES CONFIGURE_DEPENDS "src/unlocker/*.cpp" "src/unlocker/*.h") add_executable(hex-unlocked WIN32 ${UNLOCKER_SOURCES} "res/resources.rc") +target_compile_definitions(hex-unlocked PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX) target_link_libraries(hex-unlocked PRIVATE hex-warned seallib glaze::glaze tinymitm wininet ixwebsocket crypt32 user32 shell32) # rnd exe name