Skip to content

Commit 2997dd9

Browse files
committed
Disable min max macros from windows.h
1 parent dc50045 commit 2997dd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ endif()
107107

108108
# prometheus-cpp
109109

110+
if(WIN32)
111+
add_compile_definitions(NOMINMAX)
112+
endif()
113+
110114
add_subdirectory(core)
111115

112116
if(ENABLE_PULL)

0 commit comments

Comments
 (0)