From 3706d482b0c8a9eef839b90223af4052f20586ad Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 24 Jul 2025 10:07:03 +0900 Subject: [PATCH] externals: allow using watcher header library from the system * CMake/DolphinLibraryTools.cmake (dolphin_find_optional_system_library_include): New function. * CMakeLists.txt: Use it to locate the watcher header-only library. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c277e2a10a4..f52b7d8f9f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -786,7 +786,9 @@ if (USE_RETRO_ACHIEVEMENTS) add_subdirectory(Externals/rcheevos) endif() -add_subdirectory(Externals/watcher) +dolphin_find_optional_system_library_pkgconfig( + WATCHER watcher watcher Externals/watcher +) ######################################## # Pre-build events: Define configuration variables and write SCM info header