From a87ef6ed31d48ef89f2b20d1a40f7ce1d3de4a94 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Mon, 8 Apr 2024 09:59:15 +0200 Subject: [PATCH] Suspected windows.h macro `max`. --- tests/unit/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 809b53d52..8ad9fb461 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -10,6 +10,7 @@ foreach(test_name tests_high_five_base tests_high_five_multi_dims tests_high_fiv add_executable(${test_name} "${test_name}.cpp") target_link_libraries(${test_name} HighFive HighFiveWarnings HighFiveFlags Catch2::Catch2WithMain) target_link_libraries(${test_name} HighFiveOptionalDependencies) + target_compile_definitions(${test_name} PUBLIC NOMINMAX) catch_discover_tests(${test_name}) endforeach()