mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
Merge pull request #223 from fucknohtml/master
Fix opengl linking for the renderers.
This commit is contained in:
commit
0ba9843ffe
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ set(yquake2IncludeDirectories)
|
||||||
set(yquake2LinkerDirectories)
|
set(yquake2LinkerDirectories)
|
||||||
set(yquake2LinkerFlags)
|
set(yquake2LinkerFlags)
|
||||||
set(yquake2ClientLinkerFlags)
|
set(yquake2ClientLinkerFlags)
|
||||||
set(yquake2RendererLinkerFlags)
|
set(yquake2OpenGLLinkerFlags)
|
||||||
set(yquake2SDLLinkerFlags)
|
set(yquake2SDLLinkerFlags)
|
||||||
set(yquake2ZLibLinkerFlags)
|
set(yquake2ZLibLinkerFlags)
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ endif()
|
||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
list(APPEND yquake2IncludeDirectories ${OPENGL_INCLUDE_DIR})
|
list(APPEND yquake2IncludeDirectories ${OPENGL_INCLUDE_DIR})
|
||||||
list(APPEND yquake2RendererLinkerFlags ${OPENGL_LIBRARIES})
|
list(APPEND yquake2OpenGLLinkerFlags ${OPENGL_LIBRARIES})
|
||||||
|
|
||||||
if(${ZIP_SUPPORT})
|
if(${ZIP_SUPPORT})
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
|
@ -535,4 +535,4 @@ set_target_properties(ref_gl3 PROPERTIES
|
||||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/release
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/release
|
||||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/release
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/release
|
||||||
)
|
)
|
||||||
target_link_libraries(ref_gl3 ${yquake2LinkerFlags} ${yquake2OpenGLLinkerFlags} ${yquake2SDLLinkerFlags})
|
target_link_libraries(ref_gl3 ${yquake2LinkerFlags} ${yquake2SDLLinkerFlags})
|
||||||
|
|
Loading…
Reference in a new issue