From 81b934530319fd102c8d3eef05503d08658652f4 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sat, 18 Feb 2023 19:06:20 +0300 Subject: [PATCH] Update config --- CMakeLists.txt | 7 ++----- src/autorun.cc | 2 -- src/file_find.h | 2 -- src/platform_compat.cc | 2 -- src/win32.h | 2 -- 5 files changed, 2 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e671d8a..3cf9e53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -284,11 +284,8 @@ if(WIN32) target_compile_definitions(${EXECUTABLE_NAME} PUBLIC _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS - ) -else() - target_compile_definitions(${EXECUTABLE_NAME} PRIVATE - $<$:_DEBUG> - $<$:_DEBUG> + NOMINMAX + WIN32_LEAN_AND_MEAN ) endif() diff --git a/src/autorun.cc b/src/autorun.cc index 5bb9bed..97aabd7 100644 --- a/src/autorun.cc +++ b/src/autorun.cc @@ -1,8 +1,6 @@ #include "autorun.h" #ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN -#define NOMINMAX #include #endif diff --git a/src/file_find.h b/src/file_find.h index 112c51d..09b72b9 100644 --- a/src/file_find.h +++ b/src/file_find.h @@ -2,8 +2,6 @@ #define FILE_FIND_H #if defined(_WIN32) -#define WIN32_LEAN_AND_MEAN -#define NOMINMAX #include #else #include diff --git a/src/platform_compat.cc b/src/platform_compat.cc index 339739c..5297592 100644 --- a/src/platform_compat.cc +++ b/src/platform_compat.cc @@ -3,8 +3,6 @@ #include #ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN -#define NOMINMAX #include #endif diff --git a/src/win32.h b/src/win32.h index 6742458..cc5cc64 100644 --- a/src/win32.h +++ b/src/win32.h @@ -2,8 +2,6 @@ #define WIN32_H #ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN -#define NOMINMAX #include #endif