gazebosim / gz-rendering

C++ library designed to provide an abstraction for different rendering engines. It offers unified APIs for creating 3D graphics applications.
https://gazebosim.org
Apache License 2.0
50 stars 48 forks source link

Suppress "missing Optix" cmake warning #281

Open chapulina opened 3 years ago

chapulina commented 3 years ago

Environment

Description

Steps to reproduce

Build ign-rendering without Optix installed.

Output

-- Cannot build component [optix] - Missing: OptiX

j-rivero commented 3 years ago

Quick look at it, if I'm not wrong the logic goes:

If that is correct, we probably want to add an option to ign_find_package that can indicate that missing support is not a warning.

chapulina commented 3 years ago

option to ign_find_package that can indicate that missing support is not a warning

I'd expect that calling find_package with QUIET wouldn't print a warning, so maybe we can do the same for ign_find_package?

chapulina commented 3 years ago

@j-rivero , I have a suggestion on the PRs above :point_up:


https://github.com/osrf/buildfarmer/issues/181