mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-22 04:50:06 +00:00
Bot: Strip symbols
This commit is contained in:
parent
c63bfe00af
commit
f90c99ce64
@ -29,3 +29,9 @@ 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 ()
|
Loading…
Reference in New Issue
Block a user