Commit ae282662 authored by David Thompson's avatar David Thompson

Configure ITK to allow clang-tidy.

parent 15a26d00
Pipeline #187708 waiting for manual action with stages
if (DEFINED ENV{GITLAB_CI})
# Inform ITK to allow all compilers to avoid clang-tidy errors:
set(environment
PROCESS_ENVIRONMENT ITK_ACCEPT_ALL_COMPILERS 1)
message("Instructing ITK to accept all compilers")
endif()
superbuild_add_project(itk
DEPENDS cxx11
${environment}
CMAKE_ARGS
# Build what you need
-DBUILD_EXAMPLES:BOOL=OFF
......
# copies ITKVtkGlueTargets.cmake from ITK build directory to where
# ITK should install it in the sb install directory
file(READ "${itk_build_dir}/itk/build/lib/cmake/ITK-5.1/Modules/Targets/ITKVtkGlueTargets.cmake" contents)
file(READ "${itk_build_dir}/itk/build/lib/cmake/ITK-5.2/Modules/Targets/ITKVtkGlueTargets.cmake" contents)
# Replace the build path with the install path.
string(REPLACE "${itk_build_dir}/itk/build/" "${install_location}/" contents "${contents}")
file(WRITE "${install_location}/lib/cmake/ITK-5.1/Modules/Targets/ITKVtkGlueTargets.cmake" "${contents}")
file(WRITE "${install_location}/lib/cmake/ITK-5.2/Modules/Targets/ITKVtkGlueTargets.cmake" "${contents}")
......@@ -89,10 +89,10 @@ superbuild_set_revision(vxl
superbuild_set_revision(itk
GIT_REPOSITORY "https://github.com/InsightSoftwareConsortium/ITK.git"
GIT_TAG 0c8368cfbd50e424283076689fb5afaf1bd06ad3
#GIT_TAG origin/master
# ENH: Let gitlab-ci runners build with clang-tidy:
GIT_TAG d97280f880deb71e91183583623ff6287e1e36a6
# Cannot checkout shallow copy of a hash
# GIT_SHALLOW "ON")
# GIT_SHALLOW "ON"
)
superbuild_set_revision(itkvtkglue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment