File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,7 +198,12 @@ endif()
198198# Compiler warnings and definitions
199199if (MSVC )
200200 target_compile_options (databricks_sdk PRIVATE /W4 )
201- target_compile_definitions (databricks_sdk PRIVATE NOMINMAX )
201+ target_compile_definitions (databricks_sdk
202+ PRIVATE
203+ NOMINMAX # Prevent min/max macros
204+ NOGDI # Prevent GDI macros (including ERROR)
205+ WIN32_LEAN_AND_MEAN # Reduce Windows header bloat
206+ )
202207else ()
203208 target_compile_options (databricks_sdk PRIVATE -Wall -Wextra -Wpedantic )
204209endif ()
Original file line number Diff line number Diff line change @@ -24,7 +24,12 @@ target_link_libraries(secrets_example PRIVATE databricks_sdk)
2424if (MSVC )
2525 set (ALL_EXAMPLES simple_query jobs_example compute_example unity_catalog_example secrets_example)
2626 foreach (example ${ALL_EXAMPLES} )
27- target_compile_definitions (${example} PRIVATE NOMINMAX )
27+ target_compile_definitions (${example}
28+ PRIVATE
29+ NOMINMAX # Prevent min/max macros
30+ NOGDI # Prevent GDI macros (including ERROR)
31+ WIN32_LEAN_AND_MEAN # Reduce Windows header bloat
32+ )
2833 endforeach ()
2934endif ()
3035
Original file line number Diff line number Diff line change @@ -44,7 +44,12 @@ target_include_directories(unit_tests
4444
4545# Windows-specific definitions
4646if (MSVC )
47- target_compile_definitions (unit_tests PRIVATE NOMINMAX )
47+ target_compile_definitions (unit_tests
48+ PRIVATE
49+ NOMINMAX # Prevent min/max macros
50+ NOGDI # Prevent GDI macros (including ERROR)
51+ WIN32_LEAN_AND_MEAN # Reduce Windows header bloat
52+ )
4853endif ()
4954
5055# Discover and register Google Test cases
You can’t perform that action at this time.
0 commit comments