Skip to content

Commit dcc48f8

Browse files
committed
Default to C++11 for testing to address MinGW compilation errors
1 parent eb4110f commit dcc48f8

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
@@ -59,6 +59,10 @@ include (CheckLanguage)
5959
check_language (CXX)
6060
if (CMAKE_CXX_COMPILER)
6161
enable_language (CXX)
62+
if (NOT CMAKE_CXX_STANDARD)
63+
# Default to C++11 for purposes of testing.
64+
set (CMAKE_CXX_STANDARD 11)
65+
endif ()
6266
else ()
6367
message (STATUS "No CXX support")
6468
endif ()

0 commit comments

Comments
 (0)