Skip to content

Commit

Permalink
Disable SlicerHeart_BUILD_ITK_FILTERS to fix build error
Browse files Browse the repository at this point in the history
These filters are not used right now and they may break the build.
  • Loading branch information
lassoan committed Jan 12, 2021
1 parent 69b0ece commit d381169
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ find_package(Git REQUIRED)
mark_as_superbuild(GIT_EXECUTABLE)

# Only build ITK filters if ITK5 is available
set(SlicerHeart_BUILD_ITK_FILTERS ON)
# Disable by default, as it is currently not used and may break the build
set(SlicerHeart_BUILD_ITK_FILTERS OFF)
message(STATUS "ITK version: ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}.")
if(${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR} VERSION_LESS 5.0)
message(STATUS "ITK version: ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}. ITK filters are not built.")
Expand Down

0 comments on commit d381169

Please sign in to comment.