Patch #1362 ยป fix-clang-build.patch
/CMakeLists.txt 2018-08-04 16:15:08.943531294 +0200 | ||
---|---|---|
87 | 87 | |
88 | 88 |
message(STATUS "Compiler info: ${CMAKE_CXX_COMPILER_ID} (${CMAKE_CXX_COMPILER}) ; version: ${CMAKE_CXX_COMPILER_VERSION}") |
89 | 89 |
IF ( CYGWIN OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0)) |
90 |
ADD_DEFINITIONS( -std=gnu++98 ) # to support snprintf
|
|
90 |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98") # to support snprintf
|
|
91 | 91 |
ELSE() |
92 |
ADD_DEFINITIONS( -std=c++98 )
|
|
92 |
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98" )
|
|
93 | 93 |
ENDIF() |
94 | 94 | |
95 | 95 |
ENDIF( MINGW OR UNIX ) |