Skip to content

Commit 7c1b615

Browse files
committed
Update gtest used to v1.15.2
1 parent 9b5f4c5 commit 7c1b615

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/modules/GoogleTest.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ if(WIN32)
1717
BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR> --config $<CONFIG>)
1818
elseif(APPLE)
1919
set(EXTRA_GTEST_OPTS -DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT})
20+
string(REPLACE "-Wc++17-attribute-extensions" "" CMAKE_CXX_FLAGS "${CMAKE_Cxx_FLAGS}")
2021
endif()
2122

2223
include(ExternalProject)
2324
ExternalProject_Add(
2425
googletest
2526
GIT_REPOSITORY https://github.com/google/googletest.git
2627
GIT_SHALLOW 1
27-
GIT_TAG release-1.12.1
28+
GIT_TAG v1.15.2
2829
UPDATE_COMMAND ""
2930
# # Force separate output paths for debug and release builds to allow easy
3031
# # identification of correct lib in subsequent TARGET_LINK_LIBRARIES commands

0 commit comments

Comments
 (0)