diff options
author | Brad King <brad.king@kitware.com> | 2021-01-06 15:19:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-01-06 15:20:04 (GMT) |
commit | c1a7de72e1815cecf825d833161bc938afff65ee (patch) | |
tree | 57884f0bae7eaf867c2eebcf850ac47bf691376b /Tests/IncludeDirectories | |
parent | 6493d3709166fc7db7a427f752e619b70415704d (diff) | |
parent | b696f7807303b421c3f59ff2bf8229c96f09f1fa (diff) | |
download | CMake-c1a7de72e1815cecf825d833161bc938afff65ee.zip CMake-c1a7de72e1815cecf825d833161bc938afff65ee.tar.gz CMake-c1a7de72e1815cecf825d833161bc938afff65ee.tar.bz2 |
Merge topic 'depend_make_refine'
b696f78073 cmDepends: merge dependers of depend makefile
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5631
Diffstat (limited to 'Tests/IncludeDirectories')
-rw-r--r-- | Tests/IncludeDirectories/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/IncludeDirectories/CMakeLists.txt b/Tests/IncludeDirectories/CMakeLists.txt index d4c19c7..d980a52 100644 --- a/Tests/IncludeDirectories/CMakeLists.txt +++ b/Tests/IncludeDirectories/CMakeLists.txt @@ -67,7 +67,13 @@ else() endif() # Test escaping of special characters in include directory paths. -set(special_chars "~@&{}()!'") +set(special_chars "~@&{}()'") +if(NOT (CMAKE_GENERATOR STREQUAL "NMake Makefiles" AND + "x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC" AND + "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS 13.0)) + # NMake from VS 6 mistakes '!' in a path after a line continuation for a directive. + string(APPEND special_chars "!") +endif() if(NOT CMAKE_GENERATOR MATCHES "(Unix|MinGW|MSYS) Makefiles") # when compiler is used for dependencies, special characters for make are not escaped string(APPEND special_chars "%") |