Skip to content

Commit 99642d5

Browse files
Make gtest 1.11.0 a requirement for Windows (#706)
* Make gtest 1.11.0 a requirement for Windows * Add missing endif
1 parent 22dcaf1 commit 99642d5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cmake/Dependencies.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ if(BUILD_TEST)
8282
# console via a non-QUIET find_package call and if CONFIG succeeded, creates ALIAS targets
8383
# with the MODULE IMPORTED names.
8484
if(NOT DEPENDENCIES_FORCE_DOWNLOAD)
85-
find_package(GTest QUIET)
85+
if(WIN32)
86+
# Older versions of gtest on Windows does not support printing of 128-bit values,
87+
# Causing compilation errors.
88+
find_package(GTest 1.11.0 REQUIRED)
89+
else()
90+
find_package(GTest QUIET)
91+
endif()
8692
endif()
8793
if(NOT TARGET GTest::GTest AND NOT TARGET GTest::gtest)
8894
option(BUILD_GTEST "Builds the googletest subproject" ON)

0 commit comments

Comments
 (0)