andrewfenn wrote:
It's not writable for me regardless if you install Ogre to /usr/ or /usr/local. I'm having trouble thinking of a situation where that's not the case? I always have to sudo make install on linux for example. I don't know how it works on windows or OSX however I don't see any issues with installing the cmake script where it belongs.
I very rarely install to /usr or /usr/local, but often to somewhere in my home directory. That's a consequence of having to work with at least two Ogre versions, usually. And on Windows the default is to install inside the build directory. Here in particular installing to the CMake system location would be a problem because you would have to close and restart Visual Studio with administrator privileges. That's not something you'd do.
If you really need to put cmake scripts in non standard area's of the system then why not just make it a cmake option with the default being to put cmake script where they should belong and are useful?
Right now it's getting installed to /usr/local/lib/OGRE/cmake/ which isn't useful at all unless you want to script up a "find the findOgre cmake script to then find Ogre" which is a little too meta for my tastes.

Because imho we already have too many CMake options which aren't self-explanatory, and that would be yet another one... In any case, imho projects should always include any Find... scripts that aren't part of the standard CMake distribution, anyway. So just copy it to your project and adjust the CMAKE_MODULE_PATH accordingly
We could perhaps try and create a OGREConfig.cmake as an alternative. According to the docs, CMake should be able to pick that one up inside the /usr/local/lib/OGRE/cmake/ directory. However, when I wrote the first version of the FindOGRE script, I tried that and found it to be very inconvenient due to problems dealing with all the different build options and platforms.