Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
dccbbe0a
Commit
dccbbe0a
authored
Sep 23, 2009
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Visual Studio 10 has the same bug as 8 so make the path shorter
parent
84f3f6ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
+2
-2
No files found.
Tests/OutOfSource/OutOfSourceSubdir/CMakeLists.txt
View file @
dccbbe0a
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment