diff options
author | Brad King <brad.king@kitware.com> | 2010-09-13 19:56:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-09-13 20:17:20 (GMT) |
commit | a6b5ead62fb4e69c053d752570f4c8af24e41857 (patch) | |
tree | 293eb05765da0e3feaafe4611bb1741f9fb85fed /Tests | |
parent | f3bc219adbbf10f3a75af1ac1db1f47b90102e19 (diff) | |
download | CMake-a6b5ead62fb4e69c053d752570f4c8af24e41857.zip CMake-a6b5ead62fb4e69c053d752570f4c8af24e41857.tar.gz CMake-a6b5ead62fb4e69c053d752570f4c8af24e41857.tar.bz2 |
Report missing source files with context of target
Previously we reported only the CMakeLists.txt file in the directory
that adds the target.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Tests/MissingSourceFile/CMakeLists.txt | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 8e8d0ca..3e92bdf 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -129,6 +129,9 @@ IF(BUILD_TESTING) ADD_TEST_MACRO(MathTest MathTest) ADD_TEST_MACRO(Simple Simple) ADD_TEST_MACRO(PreOrder PreOrder) + ADD_TEST_MACRO(MissingSourceFile MissingSourceFile) + SET_TESTS_PROPERTIES(MissingSourceFile PROPERTIES + PASS_REGULAR_EXPRESSION "CMake Error at CMakeLists.txt:3 \\(add_executable\\):[ \r\n]*Cannot find source file \"MissingSourceFile.c\"") ADD_TEST_MACRO(COnly COnly) ADD_TEST_MACRO(CxxOnly CxxOnly) ADD_TEST_MACRO(IPO COnly/COnly) diff --git a/Tests/MissingSourceFile/CMakeLists.txt b/Tests/MissingSourceFile/CMakeLists.txt new file mode 100644 index 0000000..42b7c51 --- /dev/null +++ b/Tests/MissingSourceFile/CMakeLists.txt @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 2.8) +project(MissingSourceFile C) +add_executable(MissingSourceFile MissingSourceFile.c) |