Skip to content

Commit 6732d75

Browse files
committed
Revert "Don't force CXX_STANDARD for Google Test."
This reverts commit 07a7331.
1 parent 07a7331 commit 6732d75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ if(BUILD_TESTING)
211211
# found.
212212
enable_language(CXX)
213213

214+
set(CMAKE_CXX_STANDARD 14)
215+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
216+
set(CMAKE_CXX_EXTENSIONS OFF) # prefer use of -std14 instead of -gnustd14
217+
214218
if(NOT TARGET gtest OR NOT TARGET gmock_main)
215219
# Download and unpack googletest at configure time.
216220
configure_file(

0 commit comments

Comments
 (0)