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()