From ff4abfc47fd140fcfb8ef65627de9b58e87f0386 Mon Sep 17 00:00:00 2001 From: Nikita Vakula Date: Mon, 1 May 2023 19:47:00 +0200 Subject: [PATCH] Removed min/max macros. --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ce0bd134..214ccd49 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,6 +36,9 @@ set(NAMESPACE "${PROJECT_NAME}::") set(TARGET_EXPORT_NAME ${PROJECT_NAME}Targets) add_library(${TARGET_NAME} ${CPPKAFKA_LIBRARY_TYPE} ${SOURCES}) +IF(MSVC) + target_compile_definitions(${TARGET_NAME} PUBLIC NOMINMAX) +ENDIF() target_compile_features(${TARGET_NAME} PUBLIC cxx_std_11) target_include_directories(${TARGET_NAME} PUBLIC $) set_target_properties(${TARGET_NAME} PROPERTIES