Skip to content

Commit

Permalink
Merge pull request #302 from krjakbrjak/Fix-windows-build
Browse files Browse the repository at this point in the history
Removed min/max macros.
  • Loading branch information
mfontanini authored Jan 24, 2024
2 parents ec1c7f3 + ff4abfc commit 57617e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include/cppkafka>)
set_target_properties(${TARGET_NAME} PROPERTIES
Expand Down

0 comments on commit 57617e9

Please sign in to comment.