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 ce1b88f commit 3ccfa14Copy full SHA for 3ccfa14
1 file changed
CMake/UseITK.cmake
@@ -16,12 +16,16 @@
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}`."
+ [=[
+CMake/UseITK.cmake is deprecated.
21
+Please update CMakeLists.txt to use `find_package(ITK)` and link to "${ITK_INTERFACE_LIBRARIES}".
22
+]=]
23
)
-message(AUTHOR_WARNING "${_use_itk_msg}")
-if(${ITK_FUTURE_LEGACY_REMOVE})
24
+
25
+if(ITK_FUTURE_LEGACY_REMOVE)
26
message(FATAL_ERROR "${_use_itk_msg}")
27
+elseif(NOT ITK_LEGACY_SILENT)
28
+ message(AUTHOR_WARNING "${_use_itk_msg}")
29
endif()
30
31
# Add compiler flags needed to use ITK.
0 commit comments