Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SuperElastix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
SuperElastix
Commits
84c51cc4
Commit
84c51cc4
authored
9 years ago
by
Kasper Marstal
Browse files
Options
Downloads
Patches
Plain Diff
COMP: ELASTIX-1 Add support for big build objects on Windows
parent
dde66cb1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/elxWinConfig.cmake
+19
-15
19 additions, 15 deletions
CMake/elxWinConfig.cmake
with
19 additions
and
15 deletions
CMake/elxWinConfig.cmake
+
19
−
15
View file @
84c51cc4
# Visual Studio complains if paths are too long
string
(
LENGTH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
n
)
if
(
n GREATER 50
)
message
(
FATAL_ERROR
"ITK source code directory path length is too long (
${
n
}
> 50)."
"Please move the ITK source code directory to a directory with a shorter path."
)
endif
()
if
(
MSVC
)
string
(
LENGTH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
n
)
if
(
n GREATER 50
)
message
(
FATAL_ERROR
"ITK source code directory path length is too long for MSVC (
${
n
}
> 50)."
)
endif
()
string
(
LENGTH
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
n
)
if
(
n GREATER 50
)
message
(
FATAL_ERROR
"ITK build directory path length is too long for MSVC (
${
n
}
> 50)."
)
endif
()
string
(
LENGTH
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
n
)
if
(
n GREATER 50
)
message
(
FATAL_ERROR
"ITK build directory path length is too long (
${
n
}
> 50)."
"Please set the ITK build directory to a directory with a shorter path."
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
/bigobj"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE
}
/bigobj"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS_RELWITHDEBINFO
}
/bigobj"
)
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment