Skip to content

Commit

Permalink
Clean before merge archive
Browse files Browse the repository at this point in the history
  • Loading branch information
beef9999 committed Oct 7, 2023
1 parent 87dfc84 commit a2d5ae9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ target_link_libraries(photon_static
# Merge static libs into libphoton.a
# Do NOT use this target directly.
add_custom_target(_photon_static_archive ALL
COMMAND rm -rf libphoton.a
COMMAND ar -crT libphoton.a $<TARGET_FILE:photon_static> $<TARGET_FILE:easy_weak> $<TARGET_FILE:fstack_weak>
DEPENDS photon_static
WORKING_DIRECTORY ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}
Expand Down

0 comments on commit a2d5ae9

Please sign in to comment.