fix(build): asset_extract tool needs extern/ in include path for nlohmann/json

asset_extract pulls in src/pipeline/dbc_loader.cpp which #includes
<nlohmann/json.hpp>, 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.
This commit is contained in:
Kelsi 2026-05-06 02:30:04 -07:00
parent 88c105103b
commit fdd527b373

View file

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