[email protected] wrote: >>> + INTERFACE_LIBRARIES "${PNG_LIBRARIES}") >> >> Shouldn't this refer to zlib instead of png libraries again? > > I would have expected something like > > set_target_properties(PNG::PNG PROPERTIES INTERFACE_LINK_LIBRARIES > ZLIB::ZLIB)
For reference, this is documented here: https://cmake.org/cmake/help/v3.4/manual/cmake-packages.7.html#creating-relocatable-packages but as IMPORTED targets are getting added to find modules now, perhaps the manual cmake-developer(7) could also get a note about this: https://cmake.org/cmake/help/v3.4/manual/cmake-developer.7.html#a-sample-find-module or that section could be extended to generally discuss dependencies. Thanks, Steve. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
