These are minor changes to the cmake build scripts, which will help a little bit by reducing necessary patching whenever our conan recipe builds ogre. The conan recipe does several other patches to the Ogre source code, but most are specific to the conan build process and are not natural to include here. I believe the changes in this PR will not affect the regular Ogre build process.
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.
Use target_include_directories over include_directories for bundled zip headers - causes conflict for zip.h in conan recipe.
These are minor changes to the cmake build scripts, which will help a little bit by reducing necessary patching whenever our conan recipe builds ogre. The conan recipe does several other patches to the Ogre source code, but most are specific to the conan build process and are not natural to include here. I believe the changes in this PR will not affect the regular Ogre build process.
For reference: this is our conan recipe: https://github.com/sintef-ocean/conan-ogre3d