Closed jdumas closed 8 months ago
Done cleaning up this PR after the merge of #260. Should be much easier to review @nmwsharp. Note that the main reason to update to glm 0.9.9.8 was to use their CMake target directly. Updating to 1.x versions break compilation so I refrain from doing that.
Thanks!
I'm a little wary about unnecessarily breaking things for people who might be e.g. using Polyscope's copy of json
or something (even though this technically wasn't an intended use of the build setup). I'm also worried about what I'm always worried about with CMake, which is that it's not clear to me how to write clean proper CMake scripts, but also not break everyone's ancient dusty CMake setups in their own projects!
Regardless, I tried rebuilding so of my own projects with this and it all seems to work, so I say let's do it. The change to using targets and potentially pulling them from the outer project is quite useful.
Merged! (Also we're about to get a bunch of issues about glm
being broken, I need a keyboard macro that auto-replies "run git submodule update --init --recursive
" 😄 )
By the way, can you explain more about what glm 1.x
breaks? As long as we're changing the build setup, that's a pretty good time to bite the bullet and update glm
if the incompatibility isn't too bad.
Thanks for merging this quickly!
which is that it's not clear to me how to write clean proper CMake scripts
Oh man, I could go on for a while on this topic... Very briefly, I'd break it down to two items:
Anyhow if you have more specific concerns I'm always happy to answer any CMake question :D
Also we're about to get a bunch of issues about glm being broken, I need a keyboard macro that auto-replies "run git submodule update --init --recursive" 😄 )
Yep, this is why I've switched to FetchContent/CPM for dependency management in CMake...
By the way, can you explain more about what glm 1.x breaks? As long as we're changing the build setup, that's a pretty good time to bite the bullet and update glm if the incompatibility isn't too bad.
Hmm I encountered some compilation errors at the time, so I bumped it down to 0.9.9.8. But now that I'm trying again it seems to work right away... the only thing I had to do was define GLM_ENABLE_EXPERIMENTAL
more broadly (e.g. it's now needed in some of the functions used in the MarchingCube target). So I've opened https://github.com/nmwsharp/polyscope/pull/263 if you want to update GLM to the very latest version.