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

Cmake fixes ported from legacy ogre #474

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Apteryks
Copy link

@Apteryks Apteryks commented Nov 6, 2024

This improves things when using the FindOGRE.cmake module to locate Ogre-Next from the system, as reported here: #470 (comment)

This is a port of commit 98563cb from ogre to ogre-next, with the
following commands to complete it:

  git grep -l '${OGRE_SOURCE_DIR}' | xargs sed -i 's/${OGRE_SOURCE_DIR}/${PROJECT_SOURCE_DIR}/'
  git grep -l '${OGRE_BINARY_DIR}' | xargs sed -i 's/${OGRE_BINARY_DIR}/${PROJECT_BINARY_DIR}/'
  git grep -l '^PROJECT(' | xargs sed '/^PROJECT(/d' -i

Signed-off-by: Maxim Cournoyer <[email protected]>
This is a partial port of the commit
3568f43cd5b1e246aec3f1347fc353f388885f1a from the ogre (not ogre-next)
repository, omitting the zip header changes which doesn't apply.

  * MacroLogFeature: Clarify that even if a package is found it will not be used if a feature is disabled
  * Use list append on CMAKE_MODULE_PATH to allow prepending it with toolchain file, which is used with conan recipe.
This ports commit 6de6f9b4081a07c911932441700c54b72ec1ee1f ("CMake:
Replace FindSDL2.cmake by sdl2-config.cmake (#1530)") from Ogre.

Remove the SDL2_INCLUDE_DIRS, since the new SDL2 imported target
automatically handles that.

Signed-off-by: Maxim Cournoyer <[email protected]>
@darksylinc
Copy link
Member

Commit aecdaef9 does not pass CI on Windows.

@Apteryks
Copy link
Author

Apteryks commented Nov 8, 2024

Thanks for the heads-up; any clue where I can find a failed Windows build log?

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