Fix cmake install targets (#9822)
* Avoid exporting build tree targets to installation directory `export(TARGETS ...)` is meant to allow for build trees to be found from other projects, however, writing the file to an installation directory causes buildtree paths to be hardcoded in the installed protobuf-targets.cmake * Install protobuf-targets.cmake from target, not build tree This allows for installation prefixes to match the intended installation directories, instead of being copied from the build tree.pull/9833/head
parent
46710cabc4
commit
c80808ce1d
1 changed files with 3 additions and 7 deletions
Loading…
Reference in new issue