Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[folly] Fix fatal error in folly-config.cmake #3747

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

tessro
Copy link
Contributor

@tessro tessro commented Jun 19, 2018

facebook/folly@10d1edd makes two simultaneous changes:

  1. It uses a different mechanism for setting FOLLY_CMAKE_DIR, which confuses vcpkg_fixup_cmake_targets so the path isn't rewritten.
  2. It introduces set_and_check validation on FOLLY_CMAKE_DIR, which causes a fatal cmake error if the path is missing.

The combination of these two changes is that folly-config.cmake produces a fatal error when executed.

This PR tweaks folly's build params and the vcpkg_fixup_cmake_targets arguments so things are rewritten correctly and everything works again.

facebook/folly@10d1edd makes two
simultaneous changes:
1. It uses a different mechanism for setting `FOLLY_CMAKE_DIR`, which
   confuses `vcpkg_fixup_cmake_targets` so the path isn't rewritten.
2. It introduces `set_and_check` validation on `FOLLY_CMAKE_DIR`, which
   causes a fatal cmake error if the path is missing.

The combination of these two changes is that folly-config.cmake produces
a fatal error when executed.

This PR tweaks folly's build params and the `vcpkg_fixup_cmake_targets`
arguments so things are rewritten correctly and everything works again.
@ras0219-msft ras0219-msft merged commit 27149bb into microsoft:master Jul 3, 2018
@ras0219-msft
Copy link
Contributor

Thanks for the fix and thanks for the explanation :)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants