this should pick up the XQuartz header/libs over the Homebrew ones without preventing using Homebrew for other dependencies. As said though, I haven’t tested this fully, but it should pick up a consistent set at least.
Note as with all CMake cache settings, you should start from a fresh build, or delete the cache file before running the above. If you want to retain the CMakeCache.txt then that sed would be the only way to do this (and be careful not to overwrite Homebrew paths you want!).
Thanks, Ben! Your reply suggests to me that we want the XQuartz version for everything, rather than the Homebrew installation. Is that right?
I’d rather keep my CMakeCache.txt, since I’ve got a lot of additional settings, so I’ll run the sed -i version, and then do a ccmake configure-and-generate cycle before rebuilding.
Oh, well. I did the change, did the rebuild (and I love that the CMake generated Makefiles are smart enough to know that only the G4OpenGL targets depend on the modified variables!).
Unfortunately, I’m not getting any better graphical response than before. I can’t use OGL without running full Qt user interface (which I hate for everything except graphics). That’s outside the scope of this post, so I’m marking Ben’s Solution and am done with this. Thank you again, Ben!