Selaa lähdekoodia
Update ctkMacroBuildQtPlugin to fix CMake warning related to CMP0026
This commit fixes the warnings like the following:
// ----------------------
1>-- Configuring Loadable module: Transforms [qSlicerTransformsModuleExport.h]
1>CMake Warning (dev) at C:/D/P/SonoEQ-0-build/Slicer-build/CTK/CMake/ctkMacroBuildQtPlugin.cmake:168 (get_target_property):
1> Policy CMP0026 is not set: Disallow use of the LOCATION target property.
1> Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
1> command to set the policy and suppress this warning.
1> The LOCATION property should not be read from target
1> "qSlicerAnnotationsModuleWidgetsPlugins". Use the target name directly
1> with add_custom_command, or use the generator expression $<TARGET_FILE>, as
1> appropriate.
1>Call Stack (most recent call first):
1> C:/D/P/SonoEQ-0-build/Slicer-build/CTK/CMake/ctkMacroBuildQtPlugin.cmake:181 (ctkMacroBuildQtPlugin)
1> Modules/Loadable/Annotations/Widgets/DesignerPlugins/CMakeLists.txt:36 (ctkMacroBuildQtDesignerPlugin)
// ----------------------