Skip to content

Commit

Permalink
no longer add ITK to global path in exported CMake
Browse files Browse the repository at this point in the history
It turns out that we don't need `include(${ITK_USE_FILE})` in
STIRConfig.cmake. This therefore avoids adding the ITK include directory
to the global include path.

Effectively fixes #432 as when building STIR, we don't mind (currently
anyway).
  • Loading branch information
KrisThielemans committed Sep 30, 2024
1 parent 7c24e41 commit 42743e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cmake/STIRConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ if (@ITK_FOUND@)
if(NOT ITK_FOUND)
SET(STIR_FOUND OFF)
endif()
include(${ITK_USE_FILE})
set(STIR_BUILT_WITH_ITK TRUE)
endif()

Expand Down

0 comments on commit 42743e6

Please sign in to comment.