sapling/CMake
Wez Furlong de7f624497 eden: cmake: fixup adding libgit2 options to target
Summary:
`target_link_libraries` only allows passing things that
are libraries and expressly forbids passing in `-framework Foo`,
which is the sort of thing we get back from pkg-config on macos.
The result of misusing this is that cmake would add `["-framework", "-lFoo"]`
to the argv for the linker, which is totally broken.

Instead, we should use `target_link_options`.

Unfortunately, cmake seems to fail to do the right thing with the
` -framework CoreFoundation -framework Security` flags returned
from libgit2 on my system even using `target_link_options`; it somehow
ends up with a bare `Security` and fails to link.  meh.

Reviewed By: strager

Differential Revision: D14680672

fbshipit-source-id: 62f65ddb4d07c8194cfc453cef1349b01be6c8b3
2019-03-29 15:02:04 -07:00
..
CompilerSettingsUnix.cmake Add missing copyright notices 2019-03-07 19:32:39 -08:00
eden-config.h.in Add MononokeCurlBackingStore 2019-03-11 14:34:08 -07:00
EdenConfigChecks.cmake eden: cmake fixup include directories and deps 2019-03-28 20:57:17 -07:00
FBMercurialFeatures.cmake Add missing copyright notices 2019-03-07 19:32:39 -08:00
Findcpptoml.cmake Add missing copyright notices 2019-03-07 19:32:39 -08:00
FindGMock.cmake Add missing copyright notices 2019-03-07 19:32:39 -08:00
FindLibGit2.cmake eden: cmake: fixup adding libgit2 options to target 2019-03-29 15:02:04 -07:00
FindLZ4.cmake Add missing copyright notices 2019-03-07 19:32:39 -08:00
FindSELinux.cmake Add missing copyright notices 2019-03-07 19:32:39 -08:00
FindSqlite3.cmake Add missing copyright notices 2019-03-07 19:32:39 -08:00
ThriftCppLibrary.cmake Add missing copyright notices 2019-03-07 19:32:39 -08:00