summaryrefslogtreecommitdiffstats
path: root/Tests/CompileOptions
diff options
context:
space:
mode:
authorZsolt Parragi <zsolt.parragi@cancellar.hu>2019-04-10 12:11:21 (GMT)
committerZsolt Parragi <zsolt.parragi@cancellar.hu>2019-05-24 06:43:55 (GMT)
commit19669abe1d714d9dba3dcd642588160c0814f9e7 (patch)
tree2d4f07906a49eba1721e209546e0e9eb0d66aad6 /Tests/CompileOptions
parenta2a90f41e312ef1b6f60dd700db441e4b637d853 (diff)
downloadCMake-19669abe1d714d9dba3dcd642588160c0814f9e7.zip
CMake-19669abe1d714d9dba3dcd642588160c0814f9e7.tar.gz
CMake-19669abe1d714d9dba3dcd642588160c0814f9e7.tar.bz2
Tests: handle string escaping differences with NMake+clang
Diffstat (limited to 'Tests/CompileOptions')
-rw-r--r--Tests/CompileOptions/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CompileOptions/CMakeLists.txt b/Tests/CompileOptions/CMakeLists.txt
index 15a993c..2aa4458 100644
--- a/Tests/CompileOptions/CMakeLists.txt
+++ b/Tests/CompileOptions/CMakeLists.txt
@@ -42,7 +42,7 @@ else()
)
endif()
-if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|Borland|Embarcadero")
+if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|Borland|Embarcadero" AND NOT "${CMAKE_GENERATOR}" MATCHES "NMake Makefiles")
set_property(TARGET CompileOptions APPEND PROPERTY COMPILE_OPTIONS
"-DTEST_OCTOTHORPE=\"#\""
)