Skip to content

Commit 1c2cb5a

Browse files
committed
Shorted build path to allow ITK to build on MSVC
Addresses the following build error: loading initial cache file C:/d/p/_skbuild/cmake-build/SimpleITK-superbuild/ITK-build/CMakeCacheInit.txt CMake Error at CMakeLists.txt:30 (message): ITK source code directory path length is too long (52 > 50).Please move the ITK source code directory to a directory with a shorter path.
1 parent 3baf88a commit 1c2cb5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ if(SimpleITKPythonPackage_SUPERBUILD)
116116

117117
if(NOT DEFINED SimpleITK_DIR AND NOT DEFINED SWIG_EXECUTABLE)
118118

119-
set(SimpleITK_SUPERBUILD_DIR ${CMAKE_BINARY_DIR}/SimpleITK-superbuild)
119+
set(SimpleITK_SUPERBUILD_DIR ${CMAKE_BINARY_DIR}/sitk-sb)
120120

121121
ExternalProject_add(SimpleITK-superbuild
122122
SOURCE_DIR ${SimpleITK_SOURCE_DIR}/SuperBuild

0 commit comments

Comments
 (0)