Browse Source

Attempt to not make thin archives

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

2
functions.cmake

@ -176,7 +176,7 @@ function(merge_static_libs outlib)
# relative path is needed by ar under MSYS
file(RELATIVE_PATH objlistfilerpath ${objdir} ${objlistfile})
add_custom_command(TARGET ${outlib} POST_BUILD
COMMAND ${CMAKE_AR} ru "${outfile}" @"${objlistfilerpath}"
COMMAND ${CMAKE_AR} r "${outfile}" @"${objlistfilerpath}"
WORKING_DIRECTORY ${objdir})
endforeach()
add_custom_command(TARGET ${outlib}

Loading…
Cancel
Save