File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,23 +34,23 @@ function(cmt_collect_dependency_libs DEPENDENCY_INSTALL_DIR OUT_DEBUG_LIBS OUT_R
3434
3535 file (GLOB _ALL_MACOS_LIBS "${DEPENDENCY_INSTALL_DIR} /lib/*.a" )
3636
37- set (_MACOS_DEBUG_LIBS "-L ${DEPENDENCY_INSTALL_DIR} /lib " )
37+ set (_MACOS_DEBUG_LIBS "" )
3838
39- set (_MACOS_RELEASE_LIBS "-L${DEPENDENCY_INSTALL_DIR} /lib" )
39+ set (_MACOS_RELEASE_LIBS "" )
40+
41+ list (SORT _ALL_MACOS_LIBS)
4042
4143 foreach (_lib IN LISTS _ALL_MACOS_LIBS)
4244
4345 get_filename_component (_name "${_lib} " NAME_WE )
4446
45- string (REGEX REPLACE "^lib" "" _link_name "${_name} " )
46-
4747 if (_name MATCHES "_Debug$" )
4848
49- list (APPEND _MACOS_DEBUG_LIBS "-l ${_link_name } " )
49+ list (APPEND _MACOS_DEBUG_LIBS "${_lib } " )
5050
5151 else ()
5252
53- list (APPEND _MACOS_RELEASE_LIBS "-l ${_link_name } " )
53+ list (APPEND _MACOS_RELEASE_LIBS "${_lib } " )
5454
5555 endif ()
5656
You can’t perform that action at this time.
0 commit comments