Skip to content

cmake: Fix top-level directory references when vendored into a larger project

The paths using CMAKE_SOURCE_DIR are only correct if the CMakeLists.txt file is top-level. When another CMakeLists.txt includes that one with add_subdirectory, those paths break. I know that things are moving towards Meson, but for what it is worth, these are some helpful fixes.

Edited by Simon McVittie

Merge request reports