chore: ignore android and ios. Add custom strip do macos

This commit is contained in:
João Lucas de Oliveira Lopes
2025-04-09 11:49:16 -03:00
committed by GitHub
parent 0c26c71fd5
commit 63059a328a

View File

@@ -323,7 +323,7 @@ function(momo_strip_target target)
return()
endif()
if(MSVC OR MOMO_ENABLE_SANITIZER)
if(MSVC OR MOMO_ENABLE_SANITIZER OR CMAKE_SYSTEM_NAME STREQUAL "iOS" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
return()
endif()
@@ -335,6 +335,10 @@ function(momo_strip_target target)
set(STRIP_FLAGS "-s")
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(STRIP_FLAGS "-x")
endif()
get_property(target_type TARGET ${target} PROPERTY TYPE)
if(NOT (target_type STREQUAL "EXECUTABLE" OR target_type STREQUAL "SHARED_LIBRARY"))