Skip to content

Commit

Permalink
Fix CMakeLists for client binary
Browse files Browse the repository at this point in the history
JKG keeps the OpenAL32.lib library in a slightly different place from where
OpenJK keeps it.
  • Loading branch information
xycaleth committed Aug 10, 2014
1 parent 341b8fc commit d0e2f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codemp/CMakeLists.txt
Expand Up @@ -354,11 +354,11 @@ if(BuildMPEngine)
set(MPEngineIncludeDirectories ${MPEngineIncludeDirectories} "${MPDir}/client/OpenAL")
# There's a libs/OpenAL32.lib
# (mrw) TODO Is this actually required on windows? It is loaded at runtime, should not be linked?
find_library(OpenALLibrary NAMES OpenAL32 PATHS ${OpenJKLibDir})
find_library(OpenALLibrary NAMES OpenAL32 PATHS ${OpenJKLibDir}/openal)
if(NOT OpenALLibrary)
message(FATAL_ERROR "UseInternalOpenAL enabled, but lib/OpenAL32.lib not found!")
endif(NOT OpenALLibrary)
set(MPEngineLibraries ${MPEngineLibraries} ${OpenALLibrary})
set(MPEngineLibraries ${MPEngineLibraries} ${OpenALLibrary}/openal)
else(UseInternalOpenAL)
find_package(OpenAL REQUIRED)
set(MPEngineIncludeDirectories ${MPEngineIncludeDirectories} ${OPENAL_INCLUDE_DIR})
Expand Down

0 comments on commit d0e2f12

Please sign in to comment.