diff --git a/bot/CMakeLists.txt b/bot/CMakeLists.txt index 8cbd36f..883e3e0 100644 --- a/bot/CMakeLists.txt +++ b/bot/CMakeLists.txt @@ -28,4 +28,10 @@ target_link_libraries(LaikaBot PUBLIC LaikaLib ${BOTPLATFORMLIBS}) target_compile_definitions(LaikaBot PUBLIC "$<$:DEBUG>") # add include directory -target_include_directories(LaikaBot PUBLIC ${BOT_INCLUDEDIR}) \ No newline at end of file +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 () \ No newline at end of file