<div dir="ltr"><p class="">When using the following CMake code to link a library to a paraview plugin:<br><br>> add_paraview_plugin(Reader "v1.0"<br>> SERVER_MANAGER_XML vtkReaderServConf.xml<br>> GUI_INTERFACES ${interfaces}<br>> SERVER_MANAGER_SOURCES vtkReader.cxx<br>> SOURCES ${sources}<br>> REQUIRED_ON_SERVER)<br>><br>> target_link_libraries(Reader ${READER_LIBS})<br><br>I get from CMake the following warning.<br><br>CMake Warning (dev) at reader/CMakeLists.txt:22 (target_link_libraries): <br><br>> PolicyCMP0023 is not set: Plain and keyword target_link_libraries<br>> signatures cannot be mixed. Run "cmake --help-policy CMP0023" for policy<br>> details. Use the cmake_policy command to set the policy and suppress this<br>> warning.<br>> The keyword signature for target_link_libraries has already been used with<br>> the target "Reader". All uses of target_link_libraries with a target<br>> should be either all-keyword or all-plain.<br>><br>> The uses of the keyword signature are here:<br>> * paraview_src/CMake/ParaViewPlugins.cmake:1096 (target_link_libraries)<br>> * paraview_src/CMake/ParaViewPlugins.cmake:1099 (target_link_libraries)<br>><br>> This warning is for project developers. Use -Wno-dev to suppress it.<br></p><p class="">What am I doing wrong and how do I fix it?</p>-- <div><div class="gmail_signature"><div dir="ltr">Dipl.-Ing. Gonzalo Brito Gadeschi<br>Institute of Aerodynamics and Chair of Fluid Mechanics<br>RWTH Aachen University<br>Wuellnerstraße 5a<br>D-52062 Aachen<br>Germany<br>Phone: ++49-(0)241-80-94821<br>Fax: ++49-(0)241-80-92257<br>E-mail: <a href="mailto:g.brito@aia.rwth-aachen.de" target="_blank">g.brito@aia.rwth-aachen.de</a><br>Internet: <a href="http://www.aia.rwth-aachen.de" target="_blank">www.aia.rwth-aachen.de</a></div></div>
</div></div>