Skip to content

Commit

Permalink
Merge pull request #260 from obligaron/cmakelist
Browse files Browse the repository at this point in the history
CMakeLists: avoid adding/compiling sources twice in static lib
  • Loading branch information
joseph-henry authored Nov 17, 2023
2 parents e3aa86c + fb996ca commit ff93311
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 ff93311

Please sign in to comment.