Roger Leigh wrote: > add_library(OME::BioFormats INTERFACE IMPORTED) > set_target_properties(OME::BioFormats PROPERTIES > INTERFACE_LINK_LIBRARIES ome-bioformats) > > It's the last two lines. Internally, the target name is ome-bioformats, > but I actually want it to be OME::BioFormats as the name of the imported > interface. I don't have any need for "ome-bioformats" to be exported at > all, but EXPORT only allows a real target. Unless I missed a > workaround; I tried exporting ALIAS names and interface names, but > without success.
You might have missed https://cmake.org/cmake/help/v3.4/prop_tgt/EXPORT_NAME.html 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
