Skip to content

Commit b6c05d2

Browse files
committed
COMP: Update examples to the new build system to avoid warnings
Warning that was triggered: CMake Warning (dev) at CMake/UseITK.cmake:28 (message): CMake/UseITK.cmake is deprecated. Please update CMakeLists.txt to use `find_package(ITK)` and link to "${ITK_INTERFACE_LIBRARIES}". Call Stack (most recent call first): Modules/Remote/MorphologicalContourInterpolation/examples/CMakeLists.txt:12 (include) This warning is for project developers. Use -Wno-dev to suppress it.
1 parent afecbfd commit b6c05d2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

examples/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ else()
99
# lists of modules are not yet ready, causing a configure error
1010
find_package(ITK REQUIRED COMPONENTS MorphologicalContourInterpolation ITKSmoothing ITKIOImageBase ITKIONRRD ITKTestKernel)
1111
endif()
12-
include(${ITK_USE_FILE})
1312

1413
add_executable(mciExample mciExample.cxx)
15-
target_link_libraries(mciExample ${ITK_LIBRARIES})
14+
target_link_libraries(mciExample ${ITK_INTERFACE_LIBRARIES})
1615

1716

1817
# add some regression tests

0 commit comments

Comments
 (0)