diff options
author | Kai Wang <wangkai86@huawei.com> | 2021-01-11 06:55:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-11 17:14:04 (GMT) |
commit | 4d509437cb23f372845fba98fc8d57887c53fa70 (patch) | |
tree | ad4fed6ba194bff984b2011ee5d9dd2b954cbd52 /Tests | |
parent | aaebbd200bfc4c4802f95daf472fccc69cc04dd8 (diff) | |
download | CMake-4d509437cb23f372845fba98fc8d57887c53fa70.zip CMake-4d509437cb23f372845fba98fc8d57887c53fa70.tar.gz CMake-4d509437cb23f372845fba98fc8d57887c53fa70.tar.bz2 |
cmDepends: disable long line dependencies for nmake
This is a follow-up to commit b696f78073 (cmDepends: merge dependers of
depend makefile, 2020-12-18). NMake of visual studio has many versions
that not support long line dependencies of make rule.
Signed-off-by: Wangkai <wangkai86@huawei.com>
Fixes: #21681
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/IncludeDirectories/CMakeLists.txt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Tests/IncludeDirectories/CMakeLists.txt b/Tests/IncludeDirectories/CMakeLists.txt index d980a52..d4c19c7 100644 --- a/Tests/IncludeDirectories/CMakeLists.txt +++ b/Tests/IncludeDirectories/CMakeLists.txt @@ -67,13 +67,7 @@ else() endif() # Test escaping of special characters in include directory paths. -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() +set(special_chars "~@&{}()!'") 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 "%") |