From 9c4faae381aa0d725528c069aa4fea909134de28 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 3 Jun 2026 11:23:17 +0000 Subject: [PATCH] Rewrite prefixed libowfat exported header includes --- CMakeLists.txt | 33 ++++++++++++++++++++++++++------- README.md | 15 +++++++++++++++ 2 files changed, 41 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa79b16..2740593 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,10 +85,29 @@ set(_generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated") set(_generated_libowfat_dir "${_generated_dir}/libowfat") file(MAKE_DIRECTORY "${_generated_libowfat_dir}" "${LIBOWFAT_BUILD_PUBLIC_INCLUDE_DIR}") +function(_libowfat_rewrite_public_includes out_var content) + set(_rewritten "${content}") + if(NOT LIBOWFAT_INSTALL_INCLUDE_SUBDIR STREQUAL "libowfat") + string(REPLACE " +``` + +will include other libowfat headers through `nwlibowfat/...`, avoiding conflicts +with a system-installed `libowfat` header set.