fix(ci): link glm in test_camera; widen fopen() path on Windows

test_camera was the only Catch2 target missing the `if(TARGET glm::glm)`
link block — every other test linked glm but this one didn't, so the
macOS arm64 builder failed to find `glm/glm.hpp` from camera.hpp.

Five fopen call sites in tools/editor/cli_* passed
fs::directory_entry::path().c_str() — that's wchar_t* on Windows.
Routed them through `.string().c_str()` so MSYS2 GCC and clang both
accept the const char* parameter.
This commit is contained in:
Kelsi 2026-05-13 11:01:36 -07:00
parent 4b5b7ccd3e
commit f94c03339f
5 changed files with 8 additions and 5 deletions

View file

@ -267,7 +267,7 @@ int handleProjectAudio(int& i, int argc, char** argv) {
if (e.path().extension() != ".wav") continue;
r.wavCount++;
r.bytes += e.file_size();
FILE* f = std::fopen(e.path().c_str(), "rb");
FILE* f = std::fopen(e.path().string().c_str(), "rb");
if (f) {
char hdr[44];
if (std::fread(hdr, 1, 44, f) == 44 &&