From 3c555badd6dbe0819d6c4cae190beb2b37a256d0 Mon Sep 17 00:00:00 2001 From: Matteo Lorenzo Nasci Date: Fri, 18 Oct 2024 16:15:38 +0200 Subject: [PATCH] Added NOMINMAX to CMakeLists.txt Added definition of NOMINMAX to cmake. This will avoid conflicts with windows macros when compiling for windows. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c1a5262c9c..31b14d70ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,6 +34,7 @@ option(DPP_TEST_VCPKG "Force VCPKG build without VCPKG installed (for developmen include(CheckCXXSymbolExists) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) add_compile_definitions(DPP_BUILD) +add_compile_definitions(NOMINMAX) include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/colour.cmake") @@ -150,4 +151,4 @@ endif() if (NOT WIN32) target_link_libraries(dpp PRIVATE std::filesystem) -endif() \ No newline at end of file +endif()