summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/CStandard.cmake
blob: 2849ed4fd360b314b2f6f93d8776664bdc242b71 (plain)
1
2
3
4
5
6
7
enable_language(C)
try_compile(result ${CMAKE_CURRENT_BINARY_DIR}
  SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src.c
  C_STANDARD 3
  OUTPUT_VARIABLE out
  )
message("try_compile output:\n${out}")