[Win] Unreviewed build fix after r188239.
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Aug 2015 04:25:22 +0000 (04:25 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Aug 2015 04:25:22 +0000 (04:25 +0000)
* gtest/CMakeLists.txt:
VS2015 requires __STDC_LIMIT_MACROS to be defined for INTMAX_MAX to be defined.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188246 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/ThirdParty/ChangeLog
Source/ThirdParty/gtest/CMakeLists.txt

index 599dc26..ab1b0c4 100644 (file)
@@ -1,5 +1,12 @@
 2015-08-10  Alex Christensen  <achristensen@webkit.org>
 
+        [Win] Unreviewed build fix after r188239.
+
+        * gtest/CMakeLists.txt:
+        VS2015 requires __STDC_LIMIT_MACROS to be defined for INTMAX_MAX to be defined.
+
+2015-08-10  Alex Christensen  <achristensen@webkit.org>
+
         Build TestWebKitAPI with CMake on Windows
         https://bugs.webkit.org/show_bug.cgi?id=147851
 
index 07c1dc4..3d06ca0 100644 (file)
@@ -24,6 +24,11 @@ set(GTEST_SOURCES
     ${GTEST_DIR}/src/gtest-typed-test.cc
 )
 
+if (WIN32)
+    # MSVC 2015 requires this definition for INTMAX_MAX to be defined.
+    add_definitions(-D__STDC_LIMIT_MACROS)
+endif ()
+
 add_library(gtest SHARED ${GTEST_SOURCES})
 include_directories(${GTEST_INCLUDE_DIRECTORIES})
 add_definitions(-DGTEST_CREATE_SHARED_LIBRARY=1 -DGTEST_HAS_RTTI=0)