FLAMEGPU / FLAMEGPU2-visualiser

Cross platform real-time OpenGL visualiser for FLAMEGPU2 models.
1 stars 2 forks source link

CMake: Only look for GLEW, SDL2 & DevIL in the fetched locations on Windows #109

Closed ptheywood closed 1 year ago

ptheywood commented 1 year ago

CMake: Only look for GLEW, SDL2 & DevIL in the fetched locations on Windows

When fetching, (fake) installing and then finding pre-compiled binary packages on windows in config mode, only look in the expected location, to avoid CMake finding an incompatible version elsewhere.

In these cases, we only want CMake to find the version we've fetched ourselves.

Raised / tested by discussion https://github.com/FLAMEGPU/FLAMEGPU2/discussions/989

Ideally we should allow windows users to bring their own glew/SDL2/DevIL (and all other F2 dependencies), but IIRC a conda install was causing issues with that in the past (https://github.com/FLAMEGPU/FLAMEGPU2/issues/317)


Once merged, a PR will need to be made against FLAMEGPU/FLAMEGPU2 with the updated hash for this change to be immediately available.