Skip to content

Commit

Permalink
Revert "Revert "BUG: Do not register IO factories for testing within …
Browse files Browse the repository at this point in the history
…ITK""

This reverts commit a6a7a97 (a wrong
revert!) and does the same in applications. See conversation in GH-207.
  • Loading branch information
Simon Rit committed Sep 19, 2018
1 parent a6a7a97 commit dd00d03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions applications/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${RTK_INSTALL_LIB_DIR}")
# Required to include ITK_USE_FILE in order to Register IO factories
# Force requested modules to be RTK dependencies only, otherwise all
# available factories will try to register themselves.
find_package(ITK REQUIRED COMPONENTS ${ITK_MODULE_RTK_DEPENDS})
include(${ITK_USE_FILE})
if (NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED COMPONENTS ${ITK_MODULE_RTK_DEPENDS})
include(${ITK_USE_FILE})
endif()

#-----------------------------------------------------------------------------
# Executables
Expand Down
6 changes: 4 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/rtkTestConfiguration.h.in
# Required to include ITK_USE_FILE in order to Register IO factories
# Force requested modules to be RTK dependencies only, otherwise all
# available factories will try to register themselves.
find_package(ITK REQUIRED COMPONENTS ${ITK_MODULE_RTK_DEPENDS})
include(${ITK_USE_FILE})
if (NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED COMPONENTS ${ITK_MODULE_RTK_DEPENDS})
include(${ITK_USE_FILE})
endif()

#-----------------------------------------------------------------------------
# rtk_add_test(testname testfile [DATA{}])
Expand Down

0 comments on commit dd00d03

Please sign in to comment.