Ninja and ccache - faster builds!
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 1m28s

This commit is contained in:
Your Name
2025-05-25 22:18:58 +12:00
parent f45baa8362
commit 9375acafa9
3 changed files with 18 additions and 10 deletions

View File

@ -116,18 +116,22 @@ FetchContent_MakeAvailable(nlohmann_json)
# Find zlib
find_package(ZLIB REQUIRED)
# Force static linking for zlib
set(ZLIB_USE_STATIC_LIBS TRUE)
set(ZLIB_LIBRARIES z)
# Link libraries
target_link_libraries(dropshell PRIVATE
libassert::assert
cpptrace::cpptrace
httplib::httplib
nlohmann_json::nlohmann_json
ZLIB::ZLIB
${ZLIB_LIBRARIES}
)
# Set static linking flags
set_target_properties(dropshell PROPERTIES
LINK_FLAGS "-static-libstdc++ -static-libgcc -Wl,-Bstatic -Wl,-Bdynamic"
LINK_FLAGS "-static-libstdc++ -static-libgcc -Wl,-Bstatic -lz -Wl,-Bdynamic"
)
# Install targets