diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-30 15:01:35 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-30 15:01:35 (GMT) |
commit | 220c5dc45a61b37603e17c09d3ed9e030df55196 (patch) | |
tree | 22116062abd1b9e2a98bd715944d055b8a8fefd6 /Tests/EmptyLibrary | |
parent | 4e137de7b1e49db168228607864e80a6960ec52f (diff) | |
download | CMake-220c5dc45a61b37603e17c09d3ed9e030df55196.zip CMake-220c5dc45a61b37603e17c09d3ed9e030df55196.tar.gz CMake-220c5dc45a61b37603e17c09d3ed9e030df55196.tar.bz2 |
Add test that CMake errors with empty libs
When the library language cannot be determined, make sure CMake errors,
not segfaults (bug #11230)
Diffstat (limited to 'Tests/EmptyLibrary')
-rw-r--r-- | Tests/EmptyLibrary/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/EmptyLibrary/subdir/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/EmptyLibrary/subdir/test.h | 1 |
3 files changed, 6 insertions, 0 deletions
diff --git a/Tests/EmptyLibrary/CMakeLists.txt b/Tests/EmptyLibrary/CMakeLists.txt new file mode 100644 index 0000000..baddbbf --- /dev/null +++ b/Tests/EmptyLibrary/CMakeLists.txt @@ -0,0 +1,4 @@ +cmake_minimum_required(VERSION 2.6) +project(TestEmptyLibrary) + +add_subdirectory(subdir) diff --git a/Tests/EmptyLibrary/subdir/CMakeLists.txt b/Tests/EmptyLibrary/subdir/CMakeLists.txt new file mode 100644 index 0000000..e273f8d --- /dev/null +++ b/Tests/EmptyLibrary/subdir/CMakeLists.txt @@ -0,0 +1 @@ +add_library(test test.h) diff --git a/Tests/EmptyLibrary/subdir/test.h b/Tests/EmptyLibrary/subdir/test.h new file mode 100644 index 0000000..8511f53 --- /dev/null +++ b/Tests/EmptyLibrary/subdir/test.h @@ -0,0 +1 @@ +extern int dummy; |