Repository navigation
Conversation
The latest release is from 2014 and uses mixed-case for file/folder names
Owner
|
Thanks! Doesn't this need a similar update for the Box2D include? I assume you didn't run into this one because of case-insensitive filesystems, but then I wonder why CMake needed the change. Something like this could work I think: /* Latest Box2D release from 2014 uses mixed case, current master (2020) uses
lowercase */
#ifdef __has_include
#if __has_include(<box2d/box2d.h>)
#include <box2d/box2d.h>
#else
#include <Box2D/Box2D.h>
#endif
/* If the compiler doesn't have __has_include, assume it's extremely old, and
thus an extremely old Box2D is more likely as well */
#else
#include <Box2D/Box2D.h>
#endif |
Contributor
Author
|
You're right! I actually only tested this on my own code (on a Linux-box), but I should have also built the examples. |
Owner
|
I see, that explains everything :) |
This was referenced Sep 21, 2020
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The latest release (as of this writing) of Box2D is from 2014 and uses mixed-case
Box2D.hwhereas the newer one is all lowercasebox2d.h. This change adds support for the newer version, without breaking compatibility with the older one.Box2D also no longer provides a CMake
install()directive, which can be gotten around like this.From..
To..