feat: static use object
Some checks failed
android / build (push) Failing after 1m57s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 1m17s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 13m38s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 36s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 1m28s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 1m33s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 1m19s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 13m40s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m35s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 1m17s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 1m39s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 14m33s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 14m24s
linux-x64-clang / linux-clang (Debug) (push) Failing after 14m46s
linux-x64-clang / linux-clang (Release) (push) Failing after 30s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 29s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 2m16s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 35s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 11m4s

This commit is contained in:
tqcq 2024-10-15 11:34:57 +08:00
parent 3c9e2260c8
commit c755acfe14

View File

@ -227,8 +227,10 @@ endif()
if (TILE_BUILD_SHARED) if (TILE_BUILD_SHARED)
add_library(tile SHARED ${TILE_SRCS}) add_library(tile SHARED ${TILE_SRCS})
mesage(STATUS "Build tile shared library")
else() else()
add_library(tile STATIC ${TILE_SRCS}) add_library(tile OBJECT ${TILE_SRCS})
mesage(STATUS "Build tile object library")
endif() endif()
set_target_properties(tile PROPERTIES VERSION ${PROJECT_VERSION} set_target_properties(tile PROPERTIES VERSION ${PROJECT_VERSION}
target_precompile_headers(tile PUBLIC inja/inja.h) target_precompile_headers(tile PUBLIC inja/inja.h)