Skip to content

Commit 7eeeaa6

Browse files
committed
upd: build static libraries on release
1 parent cc25448 commit 7eeeaa6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bot/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ include(FetchContent)
33

44
add_executable(Bot)
55

6+
if(CMAKE_BUILD_TYPE STREQUAL "Release")
7+
set(BUILD_SHARED_LIBS OFF)
8+
target_link_options(Bot PRIVATE -static-libgcc -static-libstdc++)
9+
endif()
10+
611
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
712
target_compile_definitions(Bot PRIVATE DEBUG_MODE DEFAULT_PREFIX="~")
813
else()

lib/lua/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### lua
2-
add_library(lua
2+
add_library(lua STATIC
33
src/lapi.c
44
src/lauxlib.c
55
src/lbaselib.c

0 commit comments

Comments
 (0)