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.
This commit is contained in:
Maxim Cournoyer 2025-07-24 10:07:03 +09:00
parent aa45b7fe61
commit 3706d482b0
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -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