From 488c43ed0ce938b567419725192cd28c53b950e2 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Wed, 4 Sep 2024 19:46:42 +0000 Subject: [PATCH] 0033812: Configuration, MacOS - Debug Symbols Stripped From Dynamic Libraries Update optimization flag to release only --- adm/cmake/occt_defs_flags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adm/cmake/occt_defs_flags.cmake b/adm/cmake/occt_defs_flags.cmake index 3d989abcd4..f33ae158f2 100644 --- a/adm/cmake/occt_defs_flags.cmake +++ b/adm/cmake/occt_defs_flags.cmake @@ -168,7 +168,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "[Cc][Ll][Aa][Nn][Gg]") set (CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}") endif() # Optimize size of binaries - set (CMAKE_SHARED_LINKER_FLAGS "-Wl,-s ${CMAKE_SHARED_LINKER_FLAGS}") + set (CMAKE_SHARED_LINKER_FLAGS_RELEASE "-Wl,-s ${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") elseif(MINGW) add_definitions(-D_WIN32_WINNT=0x0601) # _WIN32_WINNT=0x0601 (use Windows 7 SDK)