Просмотр исходного кода

Visual Studio 10 has the same bug as 8 so make the path shorter

Bill Hoffman 16 лет назад
Родитель
Сommit
dccbbe0a99
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt

+ 2 - 2
Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt

@@ -20,9 +20,9 @@ IF ("${PROJECT_SOURCE_DIR}" STREQUAL "${ANOTHER_PROJ_SOURCE_DIR}")
   # path of the source file for no good reason.  Reduce the length
   # path of the source file for no good reason.  Reduce the length
   # limit by 46 characters to account for it.  It should still be long
   # limit by 46 characters to account for it.  It should still be long
   # enough to require special object file name conversion.
   # enough to require special object file name conversion.
-  IF(${CMAKE_GENERATOR} MATCHES "Visual Studio 8")
+  IF(${CMAKE_GENERATOR} MATCHES "Visual Studio (8|10)")
     MATH(EXPR MAXPATH "${MAXPATH} - 46")
     MATH(EXPR MAXPATH "${MAXPATH} - 46")
-  ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio 8")
+  ENDIF()
 
 
   # MAXPATH less 25 for last /and/deeper/simple.cxx part and small safety
   # MAXPATH less 25 for last /and/deeper/simple.cxx part and small safety
   MATH(EXPR MAXPATH "${MAXPATH} - 25")
   MATH(EXPR MAXPATH "${MAXPATH} - 25")