Skip to content

Commit 54eed95

Browse files
committed
force NOMINMAX definition for matplot target
1 parent 0f190cf commit 54eed95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/matplot/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,13 @@ target_compile_features(matplot PUBLIC cxx_std_17)
107107
#######################################################
108108
### Compiler options ###
109109
#######################################################
110+
message("Setting matplotplusplus compiler options")
111+
110112
# Support MSVC
111113
target_bigobj_options(matplot)
112114
target_exception_options(matplot)
113115
target_utf8_options(matplot)
114-
target_disable_minmax(matplot)
116+
target_nominmax_definition(matplot)
115117

116118
# Warnings
117119
maybe_target_pedantic_warnings(matplot)

0 commit comments

Comments
 (0)