Nikolay N.
Nikolay N.
Apparently dolphin-emu [does](https://github.com/dolphin-emu/dolphin/blob/master/Externals/watcher/CMakeLists.txt) this: ```cmake add_library(watcher INTERFACE IMPORTED GLOBAL) set_target_properties(watcher PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/watcher/include ) ``` which works as a header-only library, but I was expecting to be able to link...
This fixed the error ```patch diff --git "a/CMakeLists.txt" "b/CMakeLists.txt" index 83ef67a..0db2510 100644 --- "a/CMakeLists.txt" +++ "b/CMakeLists.txt" @@ -419,7 +419,7 @@ wtr_add_autosan_lib_target( "watcher-c-shared" "watcher-c" "watcher-c/src/watcher-c.cpp" - "watcher-c/include;${CMAKE_SOURCE_DIR}/include" + "watcher-c/include;${CMAKE_CURRENT_LIST_DIR}/include" "SHARED" )...