Skip to content

Commit

Permalink
COMP: long paths are not yet supported by all the tools in the build …
Browse files Browse the repository at this point in the history
…chain

As of January 2018, MSBuild and Visual Studio do not yet support long paths.

Change-Id: I1f77bb231b3d6e548a2ce39c63360c4cbe01a114
  • Loading branch information
dzenanz committed Jan 9, 2018
1 parent 0d312f4 commit 1c8d13b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ if( CMAKE_HOST_WIN32 )
set(_LongPathKey LongPathsEnabled)
execute_process(COMMAND reg query HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem /v ${_LongPathKey} OUTPUT_VARIABLE _output)
string(REGEX MATCH "${_LongPathKey}.*REG_DWORD.*[0-9]x([0-9])" _regex ${_output})
set(ITK_SKIP_PATH_LENGTH_CHECKS ${CMAKE_MATCH_1} CACHE BOOL "Skips max path length checks. These checks can be disabled for Windows version 10.0.14393 and later if registry key HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem\\LongPathsEnabled is set to 1")
if (${CMAKE_MATCH_1})
set(ITK_SKIP_PATH_LENGTH_CHECKS 0 CACHE BOOL "Skips max path length checks. These checks can be disabled for Windows version 10.0.14393 and later if registry key HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem\\LongPathsEnabled is set to 1 and all tools support long paths. As of January 2018, MSBuild and Visual Studio do not support it yet.")
endif()
endif()
endif()
endif()
Expand Down

0 comments on commit 1c8d13b

Please sign in to comment.