Skip to content

Tests: Add coverage for special characters in include directories

Brad King requested to merge brad.king/cmake:include-dir-special into master

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.

Also fix the Xcode generator to quote paths containing [ or ] but not a space. That makes the new test pass with or without spaces in the path to the CMake build tree. Local testing shows that the quoting is not needed for the other special characters.

Issue: #20555 (closed)

Edited by Brad King

Merge request reports