summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExportWithoutLanguage/CMakeLists.txt
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2013-07-22 21:25:21 (GMT)
committerBrad King <brad.king@kitware.com>2013-07-25 12:44:57 (GMT)
commit5837f19690c7ef490e70baedce0a8b89594da3af (patch)
tree326f0b13d8d6d47f94407c32e2a562c9512f8adb /Tests/RunCMake/ExportWithoutLanguage/CMakeLists.txt
parent2f8dace125a0d0f7e731e439eaa4a2a27b687248 (diff)
downloadCMake-5837f19690c7ef490e70baedce0a8b89594da3af.zip
CMake-5837f19690c7ef490e70baedce0a8b89594da3af.tar.gz
CMake-5837f19690c7ef490e70baedce0a8b89594da3af.tar.bz2
export: Error when exporting a target without a language
First, it prevents a NULL dereference and second it reiterates that targets without languages are not supported by CMake. Add a RunCMake.ExportWithoutLanguage test exporting a library without a languages.
Diffstat (limited to 'Tests/RunCMake/ExportWithoutLanguage/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/ExportWithoutLanguage/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExportWithoutLanguage/CMakeLists.txt b/Tests/RunCMake/ExportWithoutLanguage/CMakeLists.txt
new file mode 100644
index 0000000..e8db6b0
--- /dev/null
+++ b/Tests/RunCMake/ExportWithoutLanguage/CMakeLists.txt
@@ -0,0 +1,3 @@
+cmake_minimum_required(VERSION 2.8)
+project(${RunCMake_TEST} NONE)
+include(${RunCMake_TEST}.cmake)