From 63059a328a574a74781bd723e6ebf0357c051030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Lucas=20de=20Oliveira=20Lopes?= <55464917+jlucaso1@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:49:16 -0300 Subject: [PATCH] chore: ignore android and ios. Add custom strip do macos --- cmake/utils.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/utils.cmake b/cmake/utils.cmake index b6d81c67..ee8c8987 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -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"))