-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix glog
deps, add some missing dependencies
#500
Fix glog
deps, add some missing dependencies
#500
Conversation
My original fix (D30134167) seems to have been partially reverted; this PR just re-applies the core changes along with some minor style fixes to the CMake files. The build was failing sometimes because velox_dwrf_int_decoder_benchmark was missing a dependency on velox_dwio_dwrf_common, which transitively depended on the proto headers. This would sometimes result in this target being built before the proto headers were generated. `include_directories(${CMAKE_BINARY_DIR})` at the top of the CMake file in this directory was masking this. Now we should once again get deterministic failures if a dependency is missing.
@funrollloops has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@funrollloops has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@funrollloops merged this pull request in 2990354. |
@funrollloops by apply this path, cmake failed with followiing message:
My Os is ubuntu 20.04, and setup_ubuntu.sh is alreay called, however it works in My macOS |
I found a bunch of bugs in the dependency graph when I tried to build with glog in a non-standard location. This PR uses find_package(glog) instead of find_library, so that we also get the correct include path.
A few libraries didn't declare their dependencies (or any dependencies, really) and so also failed to build because they didn't get the necessary include paths added.
Includes #499 and #387.