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/CMakeLists.txt | |
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/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 5e88b5c..4de9ac3 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -153,6 +153,9 @@ IF(BUILD_TESTING) ADD_TEST_MACRO(ExportImport ExportImport) ADD_TEST_MACRO(Unset Unset) ADD_TEST_MACRO(PolicyScope PolicyScope) + ADD_TEST_MACRO(EmptyLibrary EmptyLibrary) + SET_TESTS_PROPERTIES(EmptyLibrary PROPERTIES + PASS_REGULAR_EXPRESSION "CMake Error: Cannot determine link language for target \"test\"") ADD_TEST_MACRO(CrossCompile CrossCompile) SET_TESTS_PROPERTIES(CrossCompile PROPERTIES PASS_REGULAR_EXPRESSION "TRY_RUN.. invoked in cross-compiling mode") |