Closed chapulina closed 2 years ago
I'm not a Cmake expert, but I think I know what's happening.
This portion of code tries to find a IgnOgre, but when it fails to find it, it still tries to find the selected components here: https://github.com/ignitionrobotics/ign-rendering/blob/49e7a06024a4adb7f2ec68cac1ebd33318cb9b8b/CMakeLists.txt#L64
Then, the components are marked as IgnOgre dependency is not available, even when IgnOgre is found below. This is confirmed by the Jenkins output:
-- Looking for IgnOGRE - not found
-- Checking for module 'OGRE-RTShaderSystem >= 1.9'
-- Found OGRE-RTShaderSystem , version 1.9.0
-- Checking for module 'OGRE-Terrain >= 1.9'
-- Found OGRE-Terrain , version 1.9.0
-- Checking for module 'OGRE-Overlay >= 1.9'
-- Found OGRE-Overlay , version 1.9.0
-- Looking for IgnOGRE - found
...
CMake Warning at /usr/share/cmake/ignition-cmake2/cmake2/IgnConfigureBuild.cmake:53 (message):
CONFIGURATION WARNINGS:
-- Missing dependency [IgnOGRE] (Components: RTShaderSystem, Terrain, Overlay)
Call Stack (most recent call first):
CMakeLists.txt:156 (ign_configure_build)
I think this should be fixed by changing the statement so the components require IgnOgre, otherwise do not import them. @j-rivero
Our CI is not finding Ogre 1.9, it may be related to https://github.com/ignitionrobotics/ign-rendering/pull/376
Environment
Description
Steps to reproduce
Run CI on Jenkins or GitHub actions. Jenkins is yellow because of the warning, but Actions doesn't fail on warnings, so it shows up green.
Output
Ogre 1.9 is installed:
But not found:
Example builds: