summaryrefslogtreecommitdiffstats
path: root/Tests/IncludeDirectories/main.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-09 19:35:33 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-10 13:37:30 (GMT)
commit9be48c4d0bd4472d87264534e30ba79397bb691e (patch)
tree957daf5e912dccf125a749c9caff6f8be88a2819 /Tests/IncludeDirectories/main.cpp
parentdc0dc974a98f91a665ff8b0559ebf4a2b218f3b8 (diff)
downloadCMake-9be48c4d0bd4472d87264534e30ba79397bb691e.zip
CMake-9be48c4d0bd4472d87264534e30ba79397bb691e.tar.gz
CMake-9be48c4d0bd4472d87264534e30ba79397bb691e.tar.bz2
Tests: Add coverage for special characters in include directories
We have tests for special characters in preprocessor definitions and custom command line arguments. Add such a test for include directories. Currently the Makefiles generators do not escape paths in `depend.make` in all cases, so leave a FIXME comment and skip the test for those. Issue: #20555
Diffstat (limited to 'Tests/IncludeDirectories/main.cpp')
-rw-r--r--Tests/IncludeDirectories/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/IncludeDirectories/main.cpp b/Tests/IncludeDirectories/main.cpp
index a59d27c..7368ee9 100644
--- a/Tests/IncludeDirectories/main.cpp
+++ b/Tests/IncludeDirectories/main.cpp
@@ -3,6 +3,17 @@
#include "SrcProp.h"
#include "TarProp.h"
+#ifdef INCLUDE_SPECIAL_DIR
+# include "SpecialDir.h"
+# ifndef SPECIAL_DIR_H
+# error "SPECIAL_DIR_H not defined"
+# endif
+# include "SpecialSpaceDir.h"
+# ifndef SPECIAL_SPACE_DIR_H
+# error "SPECIAL_SPACE_DIR_H not defined"
+# endif
+#endif
+
int main(int argc, char** argv)
{
return 0;