-
Notifications
You must be signed in to change notification settings - Fork 28
CMake touch-up #40
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
CMake touch-up #40
Conversation
It was added in CMake 3.9, the latter only in 3.12. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
It is ignored by CMake 2.6 and higher. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Improving readability wrt elseif(<condition>) Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Amends b24353b - examples/osgandroidsimple never existed in git, so the conditional looks like cruft from back then. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Improving readability wrt elseif(<condition>). Limited changes up to 3rd level subdirectories for now. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
|
Regarding Check for POLICY CMP0069 directly instead of cmake_policy(), the check is super old and was literally just there to check what it was checking, i.e. that CMake has the concept of policies, as the first things in the block used to be policies that were added in the same version of CMake as the concept of policies. Later, one was added with a version check. These were stripped out the other day when the minimum version was increased and they became on by default, and really, the existing check should have been removed at the same time. The Technically, the commit's not swapping a wrong check for the right check, it's removing an old redundant check and adding a missing check that should have been added years ago. This doesn't really affect whether or not we want the commit, but I thought it was worth clarifying as the commit message could mislead someone about the history. The |
Having read that, I see that 3.6 branch is several hundred commits behind osg upstream (which got commits in ever decreasing frequency until the end of 2022, which is where the flightgear fork is based off). Was there a plan to still rebase/merge or cherry-pick relevant fixes from there? |
|
OSG master branch broke compatibility, ended up semi-broken and isn't compatible with OpenMW, while the alternative master effort has kind of gone nowhere; OSGoS 3.6 branch is based on the upstream 3.6 branch, which is effectively the only upstream branch that actually works for us. I don't think we're lagging behind it. |
|
I was actually looking at OSG 3.6 branch, but on second try I see that I didn't notice upstream's email address change, so indeed there are only 3 minor commits as diff. |
|
Yeah, there have been some ill-advised history-rewriting operations on both sides, so it's a nuisance to get a straightforward diff through the GitHub UI. The upstream versioning scheme is a little weird, with even minor versions being called stable releases (even though they can contain breaking changes that would cause a major version number change in semver), and odd minor versions being called developer releases, which contain a bunch of experiments that might be removed again and are expected to break things. Bug fixes would generally go to an even-numbered branch and master. Robert switched to VulkanSceneGraph work and stopped working on master-branch OSG, with all maintenance work going into the upstream OpenSceneGraph-3.6 branch for quite a while before he decided it was no longer worth maintaining it at all. |
Check for POLICY CMP0069 directly instead of cmake_policy()
Cleanup FATAL_ERROR from cmake_minimum_required
Build examples only if NOT ANDROID
These are cosmetic only, but cleanup nonetheless. Deeper subdirectory levels were omitted deliberately in the
endif()cleanup so it does not dominate too much here:Cleanup legacy CMake else() conditions
Cleanup legacy CMake endif() conditions
Remaining: