Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

CMake: Add SoundTouch include path to target property

Yuri Kunde Schlesnerf9a960614d90
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6376862caf..7f099fd34c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -272,6 +272,8 @@ endif()
# process subdirectories
add_subdirectory(externals/soundtouch)
+# The SoundTouch target doesn't export the necessary include paths as properties by default
+target_include_directories(SoundTouch INTERFACE "externals/soundtouch/include")
enable_testing()
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt
index ecd3025cc8..0ad86bb7a6 100644
--- a/src/audio_core/CMakeLists.txt
+++ b/src/audio_core/CMakeLists.txt
@@ -27,8 +27,6 @@ set(HEADERS
time_stretch.h
)
-include_directories(../../externals/soundtouch/include)
-
if(SDL2_FOUND)
set(SRCS ${SRCS} sdl2_sink.cpp)
set(HEADERS ${HEADERS} sdl2_sink.h)