1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-09-28 22:48:47 +00:00

Bot: Strip symbols

This commit is contained in:
CPunch 2022-05-01 14:21:44 -05:00
parent c63bfe00af
commit f90c99ce64

View File

@ -29,3 +29,9 @@ target_compile_definitions(LaikaBot PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
# add include directory
target_include_directories(LaikaBot PUBLIC ${BOT_INCLUDEDIR})
# strip symbols for POSIX-like binaries
if((UNIX AND NOT APPLE) AND NOT RAWCMAKEBUILDTYPE STREQUAL "debug")
message(STATUS "Stripping LaikaBot symbols...")
target_link_options(LaikaBot PRIVATE -s)
endif ()