Merge pull request #1215 from davidgyu/dev_dl_link_fix

Fixed link dependency on dl library
This commit is contained in:
George ElKoura 2021-02-03 11:20:11 -08:00 committed by GitHub
commit e1c99e6818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,7 +468,8 @@ if(GLEW_FOUND AND GLEW_INCLUDE_DIR)
${PROJECT_SOURCE_DIR}/glLoader)
set(OPENGL_LOADER_LIBRARIES
${GLEW_LIBRARY}
${OPENGL_gl_LIBRARY})
${OPENGL_gl_LIBRARY}
${CMAKE_DL_LIBS})
elseif(OPENGL_FOUND)
@ -477,7 +478,8 @@ elseif(OPENGL_FOUND)
${OPENGL_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/glLoader)
set(OPENGL_LOADER_LIBRARIES
${OPENGL_gl_LIBRARY})
${OPENGL_gl_LIBRARY}
${CMAKE_DL_LIBS})
endif()