File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,12 @@ set(firebase_firestore_src
95
95
src/ValueSerializer.cs
96
96
)
97
97
98
+ # Ensure min/max macros don't get declared on Windows
99
+ # (so we can use std::min/max).
100
+ if (MSVC )
101
+ add_definitions (-DNOMINMAX )
102
+ endif ()
103
+
98
104
add_subdirectory (src/swig )
99
105
100
106
firebase_swig_add_library (firebase_firestore_swig
Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ add_library(firebase_firestore_swig_cpp STATIC
30
30
31
31
set_property (TARGET firebase_firestore_swig_cpp PROPERTY FOLDER "Firebase Cpp" )
32
32
33
+ # Ensure min/max macros don't get declared on Windows
34
+ # (so we can use std::min/max).
35
+ if (MSVC )
36
+ add_definitions (-DNOMINMAX )
37
+ endif ()
38
+
33
39
target_link_libraries (firebase_firestore_swig_cpp
34
40
PUBLIC
35
41
firebase_app
You can’t perform that action at this time.
0 commit comments