You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a top-level project that does the following call to glew git submodule:
add_subdirectory(deps/glew/build/cmake)
For now I am excluding the importing of GLEW::glew (include(deps/glew/build/cmake/glew-config.cmake)) due to the fact that the call above yields an error.
It goes on and on listing various GLEW source files. I printed out ${GLEW_DIR} inside the CMakeLists.txt right after it is defined and it revealed the following value:
This means that GLEW_DIR is pointing (in my case) at [...]/deps/glew. In itself this is correct since the variable is supposed to point at the root directory of the GLEW project. However anything with ${GLEW_DIR}/src/*.c leads to an obvious error since. I have checked out master branchthere is but one source file insrcdirectory namelyvisualinfo.c. All other source files are in auto/src` directory.
But that is not the only issue. I saw glew.c being added. However I am unable (with the call ls -R | grep glew.c) to find a single source file with that name. Since I don't see this file being generated (smae applies to glewinfo.c) I assume that the file is missing.
The text was updated successfully, but these errors were encountered:
For the purpose of a git submodule, I'd recommend using: Perlmint/glew-cmake rather than this upstream repository.
The long standing policy here is to maintain the history of the GLEW code generators, but not the corresponding history of the generated code. The general advice is to use the current GLEW release, rather than the in-progress master branch.
I do appreciate that this arrangement is old-fashioned, but indeed GLEW has been around for a good long while.
I have a top-level project that does the following call to
glew
git submodule:For now I am excluding the importing of
GLEW::glew
(include(deps/glew/build/cmake/glew-config.cmake)
) due to the fact that the call above yields an error.It goes on and on listing various GLEW source files. I printed out
${GLEW_DIR}
inside theCMakeLists.txt
right after it is defined and it revealed the following value:This means that
GLEW_DIR
is pointing (in my case) at[...]/deps/glew
. In itself this is correct since the variable is supposed to point at the root directory of the GLEW project. However anything with${GLEW_DIR}/src/*.c
leads to an obvious error since. I have checked outmaster
branchthere is but one source file in
srcdirectory namely
visualinfo.c. All other source files are in
auto/src` directory.But that is not the only issue. I saw
glew.c
being added. However I am unable (with the callls -R | grep glew.c
) to find a single source file with that name. Since I don't see this file being generated (smae applies toglewinfo.c
) I assume that the file is missing.The text was updated successfully, but these errors were encountered: