Skip to content

Commit 5c7abaa

Browse files
committed
if win32 at top level
1 parent 61e7862 commit 5c7abaa

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ if (APPLE
9797
" cmake -DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF ...")
9898
endif ()
9999

100+
if (WIN32)
101+
add_definitions(-DNOMINMAX)
102+
endif ()
103+
100104
# If ccache is installed use it for the build.
101105
option(GOOGLE_CLOUD_CPP_ENABLE_CCACHE "Automatically use ccache if available"
102106
OFF)

google/cloud/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ if (GOOGLE_CLOUD_CPP_USE_INSTALLED_COMMON)
1818
return()
1919
endif ()
2020

21-
add_definitions(-DNOMINMAX)
22-
2321
set(DOXYGEN_PROJECT_NAME "Google Cloud C++ Client")
2422
set(DOXYGEN_PROJECT_BRIEF "C++ Client Library for Google Cloud Platform")
2523
set(DOXYGEN_PROJECT_NUMBER "${PROJECT_VERSION}")

0 commit comments

Comments
 (0)