Skip to content

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

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

BillyONeal
Copy link
Contributor

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.

`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.
Copy link

@github-actions github-actions bot left a 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.

BillyONeal added a commit to BillyONeal/vcpkg that referenced this pull request Apr 8, 2025
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}));
}

```
@emilk emilk changed the title Use find_dependency to get arrow. CMake: Use find_dependency for Arrow Apr 9, 2025
Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@emilk emilk merged commit 12d70fa into rerun-io:main Apr 9, 2025
36 of 39 checks passed
@BillyONeal BillyONeal deleted the find-dependency branch April 9, 2025 16:54
@emilk emilk mentioned this pull request Apr 11, 2025
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants