From 34006b4cd5af54febb75f7b9b79a0dc96e9bbfd3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 12 Jul 2022 23:31:23 +0200 Subject: [PATCH] Make OpenAL default on all platforms. --- CMakeLists.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e0a29896..8b393f41a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,15 @@ cmake_minimum_required(VERSION 3.16) cmake_policy(SET CMP0091 NEW) cmake_policy(SET CMP0079 NEW) +# if(HAIKU) + # set(OPENAL ON) + # set(RTMIDI OFF) +# endif() +set(OPENAL ON) +if(HAIKU) + set(RTMIDI OFF) +endif() + if(NOT DEFINED QT OR QT) list(APPEND VCPKG_MANIFEST_FEATURES "qt-ui") endif() @@ -112,11 +121,6 @@ if(WIN32) add_compile_definitions(_WINSOCK_DEPRECATED_NO_WARNINGS) endif() -if(HAIKU) - set(OPENAL ON) - set(RTMIDI OFF) -endif() - set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 11) set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)