Fix link error in Mac OS X
This commit is contained in:
parent
04c4943fa8
commit
035ce26728
|
@ -231,7 +231,10 @@ else()
|
||||||
if(NOT CMAKE_BUILD_TYPE STREQUAL "CompileSpeed")
|
if(NOT CMAKE_BUILD_TYPE STREQUAL "CompileSpeed")
|
||||||
set(framework_DEFINITIONS ${framework_DEFINITIONS} -DNDEBUG) # NDEBUG disable asserts
|
set(framework_DEFINITIONS ${framework_DEFINITIONS} -DNDEBUG) # NDEBUG disable asserts
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,--as-needed -Wl,-s") # strip all debug information
|
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,-s") # strip all debug information
|
||||||
|
if(NOT APPLE)
|
||||||
|
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,--as-needed") # only link needed libraries
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CRASH_HANDLER)
|
if(CRASH_HANDLER)
|
||||||
|
|
Loading…
Reference in New Issue