Ivan Shapovalov wrote: > Of course, I can always edit the FooConfig.cmake file manually, but I'd > better avoid patching anything (installing new files or running any > cmake commands is OK). > > Is there any nice way to solve this?
After find_package(Foo CONFIG) do set_property(TARGET Foo::Foo PROPERTY LOCATION "foo_overlay.so") Apply whatever platform-specific conditions, suffix and prefix are appropriate. 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