[CMake] User-overriding IMPORTED targets (overlaying libraries, ...)
Stephen Kelly
steveire at gmail.com
Thu Sep 1 12:57:32 EDT 2016
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.
More information about the CMake
mailing list