summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/include/EmptyString.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-07-10 14:55:02 (GMT)
committerBrad King <brad.king@kitware.com>2012-07-10 15:05:04 (GMT)
commit2e99949ccb216c59ff1932bc3773654e9ae54419 (patch)
treee0a7ee0de24eab9b10f1fcfceead009d0faf2f3b /Tests/RunCMake/include/EmptyString.cmake
parent6274ca6f910683495124d22e371a1adc9cf0eebc (diff)
downloadCMake-2e99949ccb216c59ff1932bc3773654e9ae54419.zip
CMake-2e99949ccb216c59ff1932bc3773654e9ae54419.tar.gz
CMake-2e99949ccb216c59ff1932bc3773654e9ae54419.tar.bz2
include: Ignore empty string as file name (#13388)
Previously CMake silently accepted the empty string and added a bogus dependency on the current directory. Instead warn about the empty file name and ignore it. We cannot make this an error because there may be existing projects that accidentally depend on the old behavior. Add a RunCMake.include test to cover this case.
Diffstat (limited to 'Tests/RunCMake/include/EmptyString.cmake')
-rw-r--r--Tests/RunCMake/include/EmptyString.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/include/EmptyString.cmake b/Tests/RunCMake/include/EmptyString.cmake
new file mode 100644
index 0000000..4285cb3
--- /dev/null
+++ b/Tests/RunCMake/include/EmptyString.cmake
@@ -0,0 +1 @@
+include("")