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 use of FindIgnOGRE2 on Windows if OGRE2 is not found #94

Merged
merged 1 commit into from
May 11, 2020

Conversation

traversaro
Copy link
Contributor

@traversaro traversaro commented May 10, 2020

If a library is not found, a Find<package>.cmake should fail by setting <package>_FOUND to FALSE, not make the CMake configuration exit with a fatal error using message(FATAL_ERROR ...).

This change fixes the compilation of ignition-rendering on Windows when OGRE2/ogre-next is not installed.

@traversaro traversaro requested a review from mxgrey as a code owner May 10, 2020 22:15
If a library is not found, a Find<package>.cmake should fail by setting
<package>_FOUND to FALSE, not make the CMake configuration exit with a
fatal error using message(FATAL_ERROR ...).

Signed-off-by: Silvio Traversaro <[email protected]>
@traversaro traversaro force-pushed the fix-findignogre2-win branch from beed7e9 to ca60ce0 Compare May 10, 2020 22:16
Copy link
Contributor

@mxgrey mxgrey left a comment

Choose a reason for hiding this comment

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

Thanks for this fix! You're absolutely correct that this was the wrong behavior for an ignition-cmake find-module to have.

@chapulina chapulina merged commit f033612 into gazebosim:ign-cmake2 May 11, 2020
@traversaro traversaro deleted the fix-findignogre2-win branch May 11, 2020 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants