We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93df383 commit 14665e6Copy full SHA for 14665e6
1 file changed
CMake/UseITK.cmake
@@ -14,6 +14,16 @@
14
# included directly, but rather through the ITK_USE_FILE setting
15
# obtained from ITKConfig.cmake.
16
17
+set(
18
+ _use_itk_msg
19
+ "CMake/UseITK.cmake is deprecated. "
20
+ "Please update CMakeLists.txt to use `find_package(ITK)` and link to `${ITK_INTERFACE_LIBRARIES}`."
21
+)
22
+message(AUTHOR_WARNING "${_use_itk_msg}")
23
+if(${ITK_FUTURE_LEGACY_REMOVE})
24
+ message(FATAL_ERROR "${_use_itk_msg}")
25
+endif()
26
+
27
# Add compiler flags needed to use ITK.
28
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ITK_REQUIRED_C_FLAGS}")
29
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ITK_REQUIRED_CXX_FLAGS}")
0 commit comments