File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,13 @@ include(CTest)
127
127
# See https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
128
128
include (GNUInstallDirs )
129
129
130
+ # Windows defines its own versions of min() and max() which conflict with the
131
+ # versions from the standard library. Disable the Windows versions by defining
132
+ # the NOMINMAX macro. This must be set before including acl.h, which
133
+ # eventually leads to the inclusion of windows.h, where the min and max macros
134
+ # are defined.
135
+ set_property (DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS NOMINMAX )
136
+
130
137
# acl_hostxml includes acl.h, but we don't want to create a cyclic dependency,
131
138
# so we create a header only library here
132
139
add_library (acl_headers INTERFACE )
You can’t perform that action at this time.
0 commit comments