Skip to content

Commit

Permalink
Add -lGL and -lGLU to openjk_sp
Browse files Browse the repository at this point in the history
Fixes #1036

Unbreaks crash when toggling fullscreen in the singleplayer binary on
OpenBSD. openjk (multiplayer binary) uses -lGL and -lGLU but openjk_sp
did not.
  • Loading branch information
namtsui committed May 6, 2021
1 parent 5ce9406 commit 6f2e758
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ if(BuildSPEngine OR BuildJK2SPEngine)
"${GSLIncludeDirectory}")

# Dependencies

if (NOT WIN32)
# OpenGL
find_package(OpenGL REQUIRED)
set(SPEngineIncludeDirectories ${SPEngineIncludeDirectories} ${OPENGL_INCLUDE_DIR})
set(SPEngineLibraries ${SPEngineLibraries} ${OPENGL_LIBRARIES})
endif()

# OpenAL (is optionally included for Windows)
if(MSVC AND NOT WIN64)
if(UseInternalOpenAL)
Expand Down

0 comments on commit 6f2e758

Please sign in to comment.