mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 17:13:51 +00:00
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:
parent
88c105103b
commit
fdd527b373
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue