From 7849ab756fc60b8435d3381ce06040575a2edbda Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 14 Jan 2008 11:21:06 -0500 Subject: [PATCH] BUG: Disable semicolon test on VS 7.0. --- Tests/Preprocess/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Tests/Preprocess/CMakeLists.txt b/Tests/Preprocess/CMakeLists.txt index 3631072b8..ae2fa994d 100644 --- a/Tests/Preprocess/CMakeLists.txt +++ b/Tests/Preprocess/CMakeLists.txt @@ -16,13 +16,16 @@ if("${CMAKE_GENERATOR}" MATCHES "Make" AND MSVC) set(NMAKE 1) endif("${CMAKE_GENERATOR}" MATCHES "Make" AND MSVC) -if(NOT BORLAND) - # Borland: ; +if(NOT BORLAND AND NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio 7$") + # Borland, VS70 IDE: ; # The Borland compiler will simply not accept a non-escaped semicolon # on the command line. If it is escaped \; then the escape character # shows up in the preprocessing output too. + # + # The VS 7.0 IDE separates definitions on semicolons and commas with + # no regard for quotes. Fortunately VS 7.1 and above are okay. set(SEMICOLON "\;") -endif(NOT BORLAND) +endif(NOT BORLAND AND NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio 7$") if(NOT BORLAND AND NOT WATCOM) # Borland, WMake: multiple spaces