diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-09-23 20:10:31 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-09-23 20:10:31 (GMT) |
commit | dccbbe0a9960af151b45f0ed70199fe0cbff9525 (patch) | |
tree | 34b8873b70d55cafe565bb57bd84a2cdb9d86a27 /Tests/OutOfSource | |
parent | 84f3f6cad6036f7097c5b9bd0f4a837667957524 (diff) | |
download | CMake-dccbbe0a9960af151b45f0ed70199fe0cbff9525.zip CMake-dccbbe0a9960af151b45f0ed70199fe0cbff9525.tar.gz CMake-dccbbe0a9960af151b45f0ed70199fe0cbff9525.tar.bz2 |
Visual Studio 10 has the same bug as 8 so make the path shorter
Diffstat (limited to 'Tests/OutOfSource')
-rw-r--r-- | Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt b/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt index 9f7b868..c7cc090 100644 --- a/Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt +++ b/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 # limit by 46 characters to account for it. It should still be long # 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") - ENDIF(${CMAKE_GENERATOR} MATCHES "Visual Studio 8") + ENDIF() # MAXPATH less 25 for last /and/deeper/simple.cxx part and small safety MATH(EXPR MAXPATH "${MAXPATH} - 25") |