Browse Source

Avoid CustomCommand test failure on VS71 (#9963)

Test still failing on dash1.kitware. Give up on testing
the new arg on MSVC71. Test it with newer nmakes instead.
All other dashboards are fine with -DPATH=c:/posix/path
as the first arg, so keep it except when MSVC71 is true.
David Cole 15 years ago
parent
commit
a798bb7074
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Tests/CustomCommand/CMakeLists.txt

+ 5 - 1
Tests/CustomCommand/CMakeLists.txt

@@ -224,8 +224,12 @@ ADD_CUSTOM_COMMAND(OUTPUT gen_redirect.c
 ##############################################################################
 # Test non-trivial command line arguments in custom commands.
 SET(EXPECTED_ARGUMENTS)
+SET(CHECK_ARGS)
+IF(NOT MSVC71)
+  SET(CHECK_ARGS -DPATH=c:/posix/path)
+ENDIF()
 SET(CHECK_ARGS
-  -DPATH=c:/posix/path
+  ${CHECK_ARGS}
   c:/posix/path
   c:\\windows\\path
   'single-quotes'