Browse Source

Try to fix thin archive bug

master
Gavin Howard 4 years ago
parent
commit
d86e3b9a4f
Signed by: gavin GPG Key ID: C08038BDF280D33E
  1. 10
      functions.cmake

10
functions.cmake

@ -191,17 +191,11 @@ function(merge_static_libs outlib)
add_custom_command(TARGET ${outlib}
POST_BUILD
COMMAND ${CMAKE_RANLIB} ${outfile})
COMMAND ${CMAKE_AR} t "${outfile}" @"${objlistfilerpath}"
COMMAND ${CMAKE_RANLIB} "${outfile}" @"${objlistfilerpath}")
endif()
file(WRITE ${dummyfile}.base "const char* ${outlib}_sublibs=\"${libs}\";")
add_custom_command(
OUTPUT ${dummyfile}
COMMAND ${CMAKE_COMMAND} -E copy ${dummyfile}.base ${dummyfile}
DEPENDS ${libs} ${extrafiles})
endfunction()
function(merge_lib name output)

Loading…
Cancel
Save