summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/try_compile/ObjCxxStandard.cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-11-06 22:55:48 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-11-09 10:25:32 (GMT)
commit7447aa4b340420b0d55bc17bdd9ca1422b1806cf (patch)
treefb6c81fc7dea4897f7b954edb6fd0c5b9af47e25 /Tests/RunCMake/try_compile/ObjCxxStandard.cmake
parentef86e8991b6b9b2d4b25f98a95ba950f9ba19485 (diff)
downloadCMake-7447aa4b340420b0d55bc17bdd9ca1422b1806cf.zip
CMake-7447aa4b340420b0d55bc17bdd9ca1422b1806cf.tar.gz
CMake-7447aa4b340420b0d55bc17bdd9ca1422b1806cf.tar.bz2
ObjC: Add try_compile support
Fixes: #19920
Diffstat (limited to 'Tests/RunCMake/try_compile/ObjCxxStandard.cmake')
-rw-r--r--Tests/RunCMake/try_compile/ObjCxxStandard.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/try_compile/ObjCxxStandard.cmake b/Tests/RunCMake/try_compile/ObjCxxStandard.cmake
new file mode 100644
index 0000000..1221805
--- /dev/null
+++ b/Tests/RunCMake/try_compile/ObjCxxStandard.cmake
@@ -0,0 +1,7 @@
+enable_language(OBJCXX)
+try_compile(result ${CMAKE_CURRENT_BINARY_DIR}
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src.mm
+ OBJCXX_STANDARD 3
+ OUTPUT_VARIABLE out
+ )
+message("try_compile output:\n${out}")