From c755acfe1499adecec78d477ec63e46ac882758b Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:34:57 +0800 Subject: [PATCH] feat: static use object --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 551351e..4ba7d3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -227,8 +227,10 @@ endif() if (TILE_BUILD_SHARED) add_library(tile SHARED ${TILE_SRCS}) + mesage(STATUS "Build tile shared library") else() - add_library(tile STATIC ${TILE_SRCS}) + add_library(tile OBJECT ${TILE_SRCS}) + mesage(STATUS "Build tile object library") endif() set_target_properties(tile PROPERTIES VERSION ${PROJECT_VERSION} target_precompile_headers(tile PUBLIC inja/inja.h)