if (NOT glad_FOUND)
include(FetchContent)
FetchContent_Declare(
glad
URL "https://glad.dav1d.de/#language=c&specification=gl&api=gl%3D4.6&api=gles1%3Dnone&api=gles2%3Dnone&api=glsc2%3Dnone&profile=compatibility&loader=on"
DOWNLOAD_NO_EXTRACT TRUE
)
FetchContent_MakeAvailable(glad)
endif()
CMake Error at D:/IDEs/apps/CLion/ch-0/222.4167.35/bin/cmake/win/share/cmake-3.23/Modules/ExternalProject.cmake:2302:EVAL:2 (add_custom_command): BYPRODUCTS containing a "#" is not allowed.
Im switched to GLEW
find_package(GLEW QUIET)
if (NOT GLEW_FOUND)
include(FetchContent)
FetchContent_Declare(
GLEW
GIT_REPOSITORY https://github.com/Perlmint/glew-cmake
GIT_TAG glew-cmake-2.2.0
)
FetchContent_MakeAvailable(GLEW)
endif ()