1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-21 20:40:05 +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

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