summaryrefslogtreecommitdiffstats
path: root/Tests/Objective-C/cxx-file-extension-test/CMakeLists.txt
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-10-11 12:01:48 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-10-11 12:01:48 (GMT)
commit806e01d638195905b1973c031ef71a4125f50376 (patch)
tree462882c653d70bc6959c786532f44035c3405abe /Tests/Objective-C/cxx-file-extension-test/CMakeLists.txt
parent9150c818b7d2afb868575fcb2e0c9ba62b9d7f85 (diff)
downloadCMake-806e01d638195905b1973c031ef71a4125f50376.zip
CMake-806e01d638195905b1973c031ef71a4125f50376.tar.gz
CMake-806e01d638195905b1973c031ef71a4125f50376.tar.bz2
Objective-C: Do not treat Objective-C files as C++ files
When both C and C++ langauges are enabled, the Objective-C files should be treated as C files and not as C++ files.
Diffstat (limited to 'Tests/Objective-C/cxx-file-extension-test/CMakeLists.txt')
-rw-r--r--Tests/Objective-C/cxx-file-extension-test/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/Objective-C/cxx-file-extension-test/CMakeLists.txt b/Tests/Objective-C/cxx-file-extension-test/CMakeLists.txt
new file mode 100644
index 0000000..eb065e4
--- /dev/null
+++ b/Tests/Objective-C/cxx-file-extension-test/CMakeLists.txt
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 3.15)
+
+project(cxx-file-extension-test)
+
+string(APPEND CMAKE_CXX_FLAGS " -std=c++11")
+set(CMAKE_CXX_STANDARD 14)
+
+add_executable(cxx-file-extension-test main.m)