Skip to content
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 UNIX check for missing components in OGRE2. Be more verbose with components #220

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Apr 1, 2022

The check if (NOT "OGRE2-${component}" STREQUAL "OGRE2-${component}-NOTFOUND") is going to return always true since OGRE2-${component} is never going to be OGRE2-${component}-NOTFOUND. What we really want to check is the content of the whole variable which, if I'm not wrong, should be: ${OGRE2-${component}}.

The pull request includes a bit of output for the user to know when the detection of OGRE2 is failing the status of each component. Otherwise is hard to know what's going on. Example:

Current example in 2.2 (bug included that say OGRE2 was found, using a "fake component")

-- Looking for IgnOGRE2 - found

-- OGRE2_FOUND: TRUE
-- OGRE2_LIBRARIES: /usr/lib/x86_64-linux-gnu/OGRE-2.2/libOgreMain.soIgnOGRE2-HlmsPbs::IgnOGRE2-HlmsPbsIgnOGRE2-HlmsUnlit::IgnOGRE2-HlmsUnlitIgnOGRE2-Overlay::IgnOGRE2-OverlayIgnOGRE2-Fake::IgnOGRE2-Fake

With this PR:

-- Finding OGRE 2.2
--  Version: OGRE 2.2
--  component HlmsPbs: found
--  component HlmsUnlit: found
--  component Overlay: found
--  component Fake: not found!
-- Looking for IgnOGRE2 - not found

-- OGRE2_FOUND: false
-- OGRE2_LIBRARIES: /usr/lib/x86_64-linux-gnu/OGRE-2.2/libOgreMain.soIgnOGRE2-HlmsPbs::IgnOGRE2-HlmsPbsIgnOGRE2-HlmsUnlit::IgnOGRE2-HlmsUnlitIgnOGRE2-Overlay::IgnOGRE2-Overlay

@j-rivero j-rivero requested review from mxgrey and adlarkin as code owners April 1, 2022 17:09
@github-actions github-actions bot added Gazebo 1️1️ Dependency of Gazebo classic version 11 🌱 garden Ignition Garden 🏯 fortress Ignition Fortress 🏰 citadel Ignition Citadel labels Apr 1, 2022
@j-rivero j-rivero merged commit 3617a83 into ign-cmake2 Apr 4, 2022
@j-rivero j-rivero deleted the fix_ignogre2_component_found branch April 4, 2022 14:59
harshmahesheka pushed a commit to harshmahesheka/ign-cmake that referenced this pull request Apr 5, 2022
@osrf-triage
Copy link

This pull request has been mentioned on Gazebo Community. There might be relevant details there:

https://community.gazebosim.org/t/new-releases-2022-04-27-fortress-citadel/1389/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel 🏯 fortress Ignition Fortress 🌱 garden Ignition Garden Gazebo 1️1️ Dependency of Gazebo classic version 11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants