Closed
Description
Describe the bug
Cmake builds MLX42 incorrectly when a folder name contains a space character.
To Reproduce
Steps to reproduce the behavior:
- mkdir [name] - Make sure name contains a space. Ex: "test test"
- cd [name]
- git clone https://github.com/codam-coding-college/MLX42.git
- cd MLX42
- cmake -B build
- cmake --build build -j4 or do make -C build -j4
Expected behavior
MLX42 should be built without any issues.
Should contain const char* frag_shader = "#version 330 core\n" instead of const char* frag_shader = "\n"
Additional context
Apparently Cmake sees dir "test test" as 2 different directories, so when it tries to compile the shaders it can't find the files because it doesn't find the correct folder . (See screenshot)
MLX42 still gets built, but when you try to execute any code that uses the library its gives a version missing error. (See second screenshot)