[Paraview] CMake warning when linking plugin with library

Gonzalo Brito Gadeschi g.brito at aia.rwth-aachen.de
Thu Feb 5 07:03:35 EST 2015


When using the following CMake code to link a library to a paraview plugin:

> add_paraview_plugin(Reader "v1.0"
>  SERVER_MANAGER_XML vtkReaderServConf.xml
>  GUI_INTERFACES ${interfaces}
>  SERVER_MANAGER_SOURCES vtkReader.cxx
>  SOURCES ${sources}
>  REQUIRED_ON_SERVER)
>
> target_link_libraries(Reader ${READER_LIBS})

I get from CMake the following warning.

CMake Warning (dev) at reader/CMakeLists.txt:22 (target_link_libraries):

> PolicyCMP0023 is not set: Plain and keyword target_link_libraries
>   signatures cannot be mixed.  Run "cmake --help-policy CMP0023" for
policy
>   details.  Use the cmake_policy command to set the policy and suppress
this
>   warning.
>   The keyword signature for target_link_libraries has already been used
with
>   the target "Reader".  All uses of target_link_libraries with a target
>   should be either all-keyword or all-plain.
>
>  The uses of the keyword signature are here:
>   * paraview_src/CMake/ParaViewPlugins.cmake:1096 (target_link_libraries)
>   * paraview_src/CMake/ParaViewPlugins.cmake:1099 (target_link_libraries)
>
> This warning is for project developers.  Use -Wno-dev to suppress it.

What am I doing wrong and how do I fix it?
-- 
Dipl.-Ing. Gonzalo Brito Gadeschi
Institute of Aerodynamics and Chair of Fluid Mechanics
RWTH Aachen University
Wuellnerstraße 5a
D-52062 Aachen
Germany
Phone: ++49-(0)241-80-94821
Fax: ++49-(0)241-80-92257
E-mail:  g.brito at aia.rwth-aachen.de
Internet: www.aia.rwth-aachen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150205/6a17c4af/attachment.html>


More information about the ParaView mailing list