Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake glad_add_library(): MERGE trying to build non-existent file #419

Open
kintel opened this issue Mar 7, 2023 · 1 comment
Open

CMake glad_add_library(): MERGE trying to build non-existent file #419

kintel opened this issue Mar 7, 2023 · 1 comment

Comments

@kintel
Copy link

kintel commented Mar 7, 2023

Example config (based on example/src/egl_x11)

glad_add_library(glad_egl_15_gles2_20 REPRODUCIBLE MERGE LOADER API egl=1.5 gl:core=3.3 gles2=2.0)

The goal (which seems to work) is to merge OpenGL 3.3 and GLES2 symbols.
This means that glad only produces a single gl.c for the two API, but the CMake machinery tries to build gles2.c as well:

Writing /Users/kintel/code/OpenGL/glad/example/c/egl_x11/gladsources/glad_egl_15_gles2_20/args.txt
[ 28%] Building C object CMakeFiles/glad_egl_15_gles2_20.dir/gladsources/glad_egl_15_gles2_20/src/egl.c.o
[ 42%] Building C object CMakeFiles/glad_egl_15_gles2_20.dir/gladsources/glad_egl_15_gles2_20/src/gl.c.o
[ 57%] Building C object CMakeFiles/glad_egl_15_gles2_20.dir/gladsources/glad_egl_15_gles2_20/src/gles2.c.o
clang: error: no such file or directory: '/Users/kintel/code/OpenGL/glad/example/c/egl_x11/gladsources/glad_egl_15_gles2_20/src/gles2.c'
clang: error: no input files
@pltanguay
Copy link

I reproduced this issue on my end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants