SDL_mixer: cmake: only add include directories of ogg to those of opusfile

From 3e4f2b0f97b3d0a6b73865d8efa05269112cbf1c Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 12 Jan 2024 18:21:38 +0100
Subject: [PATCH] cmake: only add include directories of ogg to those of
 opusfile

---
 cmake/FindOpusFile.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/FindOpusFile.cmake b/cmake/FindOpusFile.cmake
index 45992cf5..578e136a 100644
--- a/cmake/FindOpusFile.cmake
+++ b/cmake/FindOpusFile.cmake
@@ -40,9 +40,9 @@ if(OpusFile_FOUND AND Ogg_FOUND)
         add_library(OpusFile::opusfile UNKNOWN IMPORTED)
         set_target_properties(OpusFile::opusfile PROPERTIES
             IMPORTED_LOCATION "${OpusFile_LIBRARY}"
-            INTERFACE_INCLUDE_DIRECTORIES "${OpusFile_dirs}"
+            INTERFACE_INCLUDE_DIRECTORIES "${OpusFile_dirs};$<TARGET_PROPERTY:Ogg::Ogg,INTERFACE_INCLUDE_DIRECTORIES>"
             INTERFACE_COMPILE_OPTIONS "${OpusFile_COMPILE_OPTIONS}"
-            INTERFACE_LINK_LIBRARIES "${OpusFile_LINK_LIBRARIES};Ogg::Ogg"
+            INTERFACE_LINK_LIBRARIES "${OpusFile_LINK_LIBRARIES}"
             INTERFACE_LINK_OPTIONS "${OpusFile_LINK_OPTIONS}"
             INTERFACE_LINK_DIRECTORIES "${OpusFile_LINK_DIRECTORIES}"
         )