fix opengl loader include error when build with opengl and examples

This commit is contained in:
Daniel 2022-09-04 01:04:48 +08:00
parent ff76e0f2dc
commit 4f5834de30

View File

@ -71,6 +71,10 @@ if(CUDA_FOUND)
)
endif()
if(DEFINED OPENGL_LOADER_INCLUDE_DIRS)
include_directories(${OPENGL_LOADER_INCLUDE_DIRS})
endif()
if(OPENGL_FOUND AND GLFW_FOUND)
list(APPEND EXAMPLES_COMMON_GL_SOURCE_FILES
@ -87,8 +91,6 @@ if(OPENGL_FOUND AND GLFW_FOUND)
glShaderCache.h
)
include_directories(${OPENGL_LOADER_INCLUDE_DIRS})
if (GLFW_FOUND)
include_directories("${GLFW_INCLUDE_DIR}")
endif()