projects
/
platform
/
upstream
/
cmake.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
97e72ea40c4882f555a17b127e8878db599c4f85
[platform/upstream/cmake.git]
/
Tests
/
RunCMake
/
try_compile
/
CStandardNoDefault.cmake
1
enable_language(C)
2
try_compile(result ${CMAKE_CURRENT_BINARY_DIR}
3
SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src.c
4
C_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()