diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 918e9773e3..22a8646a18 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -1714,17 +1714,19 @@ else() if(OPENAL) find_package(OpenAL REQUIRED) add_definitions(-DUSE_OPENAL) - - # SRS - Added support for OpenAL Soft headers on OSX (vs default macOS SDK headers) - if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT OPENAL_INCLUDE_DIR MATCHES "SDKs/MacOSX.*\.sdk") - include_directories(${OPENAL_INCLUDE_DIR}) - add_definitions(-DUSE_OPENAL_SOFT_INCLUDES) - endif() + + # SRS - Added support for OpenAL Soft headers on OSX (vs default macOS SDK headers) + if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT OPENAL_INCLUDE_DIR MATCHES "SDKs/MacOSX.*\.sdk") + include_directories(${OPENAL_INCLUDE_DIR}) + add_definitions(-DUSE_OPENAL_SOFT_INCLUDES) + endif() list(APPEND RBDOOM3_INCLUDES ${OPENAL_INCLUDES}) - list(APPEND RBDOOM3_SOURCES - ${OPENAL_SOURCES} - ${DOOMCLASSIC_OPENAL_SOURCES}) + list(APPEND RBDOOM3_SOURCES ${OPENAL_SOURCES}) + + if(DOOM_CLASSIC) + list(APPEND RBDOOM3_SOURCES ${DOOMCLASSIC_OPENAL_SOURCES}) + endif() else() list(APPEND RBDOOM3_INCLUDES ${STUBAUDIO_INCLUDES}) list(APPEND RBDOOM3_SOURCES ${STUBAUDIO_SOURCES})