diff --git a/cmake/external/pybind11.cmake b/cmake/external/pybind11.cmake index 05cc77f23baaab80d6d323f5b463af7839568982..353cb5c72fdfb9ebc88347a4a34aeb1ad85e828e 100644 --- a/cmake/external/pybind11.cmake +++ b/cmake/external/pybind11.cmake @@ -34,6 +34,11 @@ ExternalProject_Add( "${PYBIND_DOWNLOAD_CMD}" PREFIX ${PYBIND_PREFIX_DIR} SOURCE_DIR ${PYBIND_SOURCE_DIR} + # If we explicitly leave the `UPDATE_COMMAND` of the ExternalProject_Add + # function in CMakeLists blank, it will cause another parameter GIT_TAG + # to be modified without triggering incremental compilation, and the + # third-party library version changes cannot be incorporated. + # reference: https://cmake.org/cmake/help/latest/module/ExternalProject.html UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND ""