fix the link error of raylib_opengl_interop and rlgl_standalone, and the error of un-removed cache in AddIfFlagCompiles.cmake

This commit is contained in:
PSZ 2024-02-25 18:53:34 +08:00
commit 4726740e42
2 changed files with 15 additions and 0 deletions

View file

@ -142,5 +142,8 @@ foreach (example_source ${example_sources})
endif ()
endforeach ()
# Need glfw implemention for glfw3.h
target_sources(rlgl_standalone PRIVATE ${CMAKE_SOURCE_DIR}/src/rglfw.c)
# Copy all of the resource files to the destination
file(COPY ${example_resources} DESTINATION "resources/")

View file

@ -38,6 +38,9 @@
#include <OpenGL/gl3.h> // OpenGL 3 library for OSX
#include <OpenGL/gl3ext.h> // OpenGL 3 extensions library for OSX
#else
#if defined(_WIN32) && defined(_MSC_VER)
#define GLAD_IMPLEMENTATION // Need self-implementation for MSVC
#endif
#include "glad.h" // Required for: OpenGL functionality
#endif
#define GLSL_VERSION 330