Skip to content

[BUG] Shader build process executing incorrectly #91

Closed
@bantunesfranco

Description

@bantunesfranco

Describe the bug
Cmake builds MLX42 incorrectly when a folder name contains a space character.

To Reproduce
Steps to reproduce the behavior:

  1. mkdir [name] - Make sure name contains a space. Ex: "test test"
  2. cd [name]
  3. git clone https://github.com/codam-coding-college/MLX42.git
  4. cd MLX42
  5. cmake -B build
  6. cmake --build build -j4 or do make -C build -j4

Expected behavior
MLX42 should be built without any issues.

Screenshots
Screen Shot 2023-02-24 at 12 14 43 PM

Screen Shot 2023-02-24 at 12 34 43 PM

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working or should get fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions