-
Notifications
You must be signed in to change notification settings - Fork 10
build: cmake build optimize,avoid repeated compilation of dependent libraries #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -13,6 +13,7 @@ ExternalProject_Add( | |||
GIT_REPOSITORY "https://github.com/madler/zlib.git" | ||||
GIT_TAG "v1.2.8" | ||||
GIT_SHALLOW true | ||||
UPDATE_COMMAND "" | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove duplicate UPDATE_COMMAND parameter There's already an identical - UPDATE_COMMAND "" 📝 Committable suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 看看这个AI的comment,下面的跟这个重复了 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @marsevilspirit 是的,您说得对。代码中确实存在重复的 |
||||
SOURCE_DIR ${ZLIB_SOURCES_DIR} | ||||
CMAKE_ARGS | ||||
${EXTERNAL_PROJECT_C} | ||||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -16,6 +16,7 @@ ExternalProject_Add( | |||
DOWNLOAD_NAME "zstd-1.5.4.tar.gz" | ||||
SOURCE_DIR ${zstd_SOURCES_DIR} | ||||
DOWNLOAD_NO_PROGRESS 1 | ||||
UPDATE_COMMAND "" | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate UPDATE_COMMAND parameter detected. The - UPDATE_COMMAND "" 📝 Committable suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 看看这个AI的comment,下面的跟这个重复了 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @marsevilspirit 您说得对,代码中确实存在重复的
建议删除新增的那一行(第19行),保留原来的第34行即可。这样可以避免冗余并保持代码的清晰度,同时仍然能够实现PR目标:通过设置空的更新命令来优化构建过程,避免重复编译依赖库。 |
||||
SOURCE_SUBDIR build/cmake | ||||
CMAKE_ARGS | ||||
${EXTERNAL_PROJECT_C} | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove duplicate UPDATE_COMMAND parameter
There's already an identical
UPDATE_COMMAND ""
parameter at line 46. Having two identical parameters in the sameExternalProject_Add
call is redundant and may lead to confusion.- UPDATE_COMMAND ""
📝 Committable suggestion