35caa9d0943a55047d205b6467554ef85f43dd3d
[platform/upstream/cmake.git] / Tests / RunCMake / try_compile / CxxStandardNoDefault.cmake
1 enable_language(CXX)
2 try_compile(result ${CMAKE_CURRENT_BINARY_DIR}
3   SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src.cxx
4   CXX_STANDARD 3 # bogus, but not used
5   OUTPUT_VARIABLE out
6   )
7 if(NOT result)
8   message(FATAL_ERROR "try_compile failed:\n${out}")
9 endif()