From fdd527b3738f6777c3561375ec801023a5bbf9b0 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 02:30:04 -0700 Subject: [PATCH] fix(build): asset_extract tool needs extern/ in include path for nlohmann/json asset_extract pulls in src/pipeline/dbc_loader.cpp which #includes , but the tool's include directories didn't list extern/ where the header lives. Build succeeded if asset_extract was disabled (no StormLib) but failed otherwise. Added the extern/ system include so the tool builds wherever StormLib is found. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f7a05edf..8749a9c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1182,6 +1182,9 @@ if(STORMLIB_LIBRARY AND STORMLIB_INCLUDE_DIR) ${CMAKE_CURRENT_SOURCE_DIR}/tools/asset_extract ${STORMLIB_INCLUDE_DIR} ) + target_include_directories(asset_extract SYSTEM PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR}/extern + ) target_link_libraries(asset_extract PRIVATE ${STORMLIB_LIBRARY} ZLIB::ZLIB