Skip to content

Commit

Permalink
Fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
dima424658 committed Aug 22, 2022
1 parent 668ad1f commit c70b378
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 256 deletions.
17 changes: 11 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
cmake_minimum_required (VERSION 2.8)
cmake_minimum_required (VERSION 2.9)
project (OALWrapper)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-fdiagnostics-color=always)
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_compile_options(-fcolor-diagnostics)
endif()

set(OALWrapper_VERSION_MAJOR 1)
set(OALWrapper_VERSION_MINOR 0)

Expand Down Expand Up @@ -119,11 +128,7 @@ ELSEIF(APP_PRIVATE_LIB_DIR AND APPLE)

FIND_PACKAGE(OpenAL)
ELSE()
FIND_PACKAGE(OGG)
FIND_PACKAGE(Vorbis)
IF(NOT(APPLE))
FIND_PACKAGE(VorbisFile)
ENDIF()
FIND_PACKAGE(Ogg)
FIND_PACKAGE(OpenAL)
IF(USE_SDL2)
FIND_PACKAGE(SDL2)
Expand Down
75 changes: 0 additions & 75 deletions CMakeScripts/FindOGG.cmake

This file was deleted.

83 changes: 0 additions & 83 deletions CMakeScripts/FindVorbis.cmake

This file was deleted.

91 changes: 0 additions & 91 deletions CMakeScripts/FindVorbisFile.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion sources/OAL_Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ bool cOAL_Device::Init( cOAL_Init_Params& acParams )

LogMsg("",eOAL_LogVerbose_Low, eOAL_LogMsg_Info, "Attempting to open device...\n" );
// Open the device, if fails return false
if(acParams.msDeviceName.empty())
if(acParams.msDeviceName.empty() || acParams.msDeviceName.compare("NULL") == 0)
mpDevice = alcOpenDevice(NULL);
else
mpDevice = alcOpenDevice( acParams.msDeviceName.c_str() );
Expand Down

0 comments on commit c70b378

Please sign in to comment.