Skip to content

Commit 488c43e

Browse files
committed
0033812: Configuration, MacOS - Debug Symbols Stripped From Dynamic Libraries
Update optimization flag to release only
1 parent 2fa9309 commit 488c43e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adm/cmake/occt_defs_flags.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "[Cc][Ll][Aa][Nn][Gg]")
168168
set (CMAKE_CXX_FLAGS "-stdlib=libc++ ${CMAKE_CXX_FLAGS}")
169169
endif()
170170
# Optimize size of binaries
171-
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,-s ${CMAKE_SHARED_LINKER_FLAGS}")
171+
set (CMAKE_SHARED_LINKER_FLAGS_RELEASE "-Wl,-s ${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
172172
elseif(MINGW)
173173
add_definitions(-D_WIN32_WINNT=0x0601)
174174
# _WIN32_WINNT=0x0601 (use Windows 7 SDK)

0 commit comments

Comments
 (0)