-
Notifications
You must be signed in to change notification settings - Fork 451
CMake: Use find_dependency
for Arrow
#9548
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
Conversation
`CMakeFindDependencyMacro` https://cmake.org/cmake/help/latest/module/CMakeFindDependencyMacro.html wires up find_package options like REQUIRED and QUIET to dependent package searches. As written find_package(rerun_sdk CONFIG QUIET) can blow up despite the user saying QUIET.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Thanks for opening this pull request.
Because this is your first time contributing to this repository, make sure you've read our Contributor Guide and Code of Conduct.
Incorporates rerun-io/rerun#9548 and rerun-io/rerun#9550 After these changes I tested that it built OK with https://github.com/rerun-io/rerun/blob/main/examples/cpp/minimal/main.cpp : ``` C:\Dev\test>dir Volume in drive C is OS Volume Serial Number is 9288-8F79 Directory of C:\Dev\test 04/08/2025 10:42 AM <DIR> . 04/08/2025 10:40 AM <DIR> .. 04/08/2025 10:38 AM 180 CMakeLists.txt 04/08/2025 10:37 AM 756 main.cpp 2 File(s) 936 bytes 2 Dir(s) 4,813,367,603,200 bytes free C:\Dev\test>type CMakeLists.txt cmake_minimum_required(VERSION 3.10) project(HelloWorld) add_executable(main main.cpp) find_package(rerun_sdk CONFIG REQUIRED) target_link_libraries(main PRIVATE rerun_sdk) C:\Dev\test>type main.cpp #include <rerun.hpp> #include <rerun/demo_utils.hpp> using rerun::demo::grid3d; int main() { // Create a new `RecordingStream` which sends data over gRPC to the viewer process. const auto rec = rerun::RecordingStream("rerun_example_cpp"); // Try to spawn a new viewer instance. rec.spawn().exit_on_failure(); // Create some data using the `grid` utility function. std::vector<rerun::Position3D> points = grid3d<rerun::Position3D, float>(-10.f, 10.f, 10); std::vector<rerun::Color> colors = grid3d<rerun::Color, uint8_t>(0, 255, 10); // Log the "my_points" entity with our data, using the `Points3D` archetype. rec.log("my_points", rerun::Points3D(points).with_colors(colors).with_radii({0.5f})); } ```
find_dependency
for Arrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
CMakeFindDependencyMacro
https://cmake.org/cmake/help/latest/module/CMakeFindDependencyMacro.html wires upfind_package
options likeREQUIRED
andQUIET
to dependent package searches.As written
find_package(rerun_sdk CONFIG QUIET)
can blow up despite the user saying QUIET.