Bot: Strip symbols

This commit is contained in:
CPunch 2022-05-01 14:21:44 -05:00
parent c63bfe00af
commit f90c99ce64
1 changed files with 7 additions and 1 deletions

View File

@ -28,4 +28,10 @@ target_link_libraries(LaikaBot PUBLIC LaikaLib ${BOTPLATFORMLIBS})
target_compile_definitions(LaikaBot PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
# add include directory
target_include_directories(LaikaBot PUBLIC ${BOT_INCLUDEDIR})
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 ()