1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-10 06:52:05 +01:00

Fix #13359: [CMake] Only search for Xaudio2 on Windows (#13372)

This commit is contained in:
Charles Pigott
2025-01-27 20:24:57 +00:00
committed by GitHub
parent 119470f43e
commit 98d5dde094

View File

@@ -139,7 +139,9 @@ if(NOT EMSCRIPTEN)
endif()
if(NOT OPTION_DEDICATED)
if(NOT WIN32)
if(WIN32)
find_package(Xaudio2)
else()
find_package(Allegro)
if(NOT APPLE)
find_package(Freetype)
@@ -174,7 +176,6 @@ if(MSVC)
endif()
find_package(SSE)
find_package(Xaudio2)
find_package(Grfcodec)