Skip to content

Commit

Permalink
CMakeLists: avoid adding/compiling sources twice in static lib
Browse files Browse the repository at this point in the history
  • Loading branch information
obligaron committed Nov 7, 2023
1 parent 729e463 commit fb996ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ if(BUILD_STATIC_LIB)
${STATIC_LIB_NAME} STATIC
$<TARGET_OBJECTS:zt_pic> $<TARGET_OBJECTS:zto_pic>
$<TARGET_OBJECTS:natpmp_pic> $<TARGET_OBJECTS:miniupnpc_pic>
$<TARGET_OBJECTS:lwip_pic> ${libztSrcGlob})
$<TARGET_OBJECTS:lwip_pic>)
set_target_properties(
${STATIC_LIB_NAME}
PROPERTIES LINKER_LANGUAGE CXX
Expand Down

0 comments on commit fb996ca

Please sign in to comment.