Skip to content

Commit 0e83af9

Browse files
author
kan
committed
Disable non-portable compiler extensions.
1 parent 34248c0 commit 0e83af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/SetCXXStandard.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1010
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
1111
### Even though CMAKE_CXX_STANDARD_REQUIRED is supported since CMake 3.1, it doesn't work for Emscripten em++ together with
1212
### Cmake 3.6.
13-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++${CMAKE_CXX_STANDARD}")
13+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++${CMAKE_CXX_STANDARD}")
1414
endif()

0 commit comments

Comments
 (0)