diff options
author | Brad King <brad.king@kitware.com> | 2016-12-07 14:22:22 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-12-07 14:22:22 (GMT) |
commit | a0d64ecf8b9eac29cbfeb7461cf3bcb1688f7aa7 (patch) | |
tree | 99011b6e805e6032e1679d0fa98ecd5f8e846458 /Tests/RunCMake/try_compile/CStandard.cmake | |
parent | 0478314e13e6d04a0100cc3be4ab84540a8beaa5 (diff) | |
parent | f72ba42b7c643b1b217d1b8f6684cec3289e7201 (diff) | |
download | CMake-a0d64ecf8b9eac29cbfeb7461cf3bcb1688f7aa7.zip CMake-a0d64ecf8b9eac29cbfeb7461cf3bcb1688f7aa7.tar.gz CMake-a0d64ecf8b9eac29cbfeb7461cf3bcb1688f7aa7.tar.bz2 |
Merge topic 'try_compile-lang-std'
f72ba42b try_compile: Add policy CMP0067 to honor language standards
45aa03b9 try_compile: Add options to specify language standards
3bb2051e try_compile: Stop processing when test build system fails to generate
Diffstat (limited to 'Tests/RunCMake/try_compile/CStandard.cmake')
-rw-r--r-- | Tests/RunCMake/try_compile/CStandard.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/CStandard.cmake b/Tests/RunCMake/try_compile/CStandard.cmake new file mode 100644 index 0000000..2849ed4 --- /dev/null +++ b/Tests/RunCMake/try_compile/CStandard.cmake @@ -0,0 +1,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}") |