1 include(${CMAKE_CURRENT_SOURCE_DIR}/${try_compile_DEFS})
5 try_compile(result ${try_compile_bindir_or_SOURCES}
6 ${try_compile_redundant_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/CxxStandardGNU.cxx
8 CXX_STANDARD_REQUIRED 1
14 message(FATAL_ERROR "try_compile failed:\n${out}")
17 cmake_policy(SET CMP0067 NEW)
19 set(CMAKE_CXX_STANDARD 11)
20 set(CMAKE_CXX_STANDARD_REQUIRED 1)
21 set(CMAKE_CXX_EXTENSIONS 0)
23 try_compile(result ${try_compile_bindir_or_SOURCES}
24 ${try_compile_redundant_SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/CxxStandardGNU.cxx
29 message(FATAL_ERROR "try_compile failed:\n${out}")