From 0d25d55a865e3ff53a65028e0ee44ddd54abf4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E6=99=93=E4=BC=9F?= <39303645+Shixiaowei02@users.noreply.github.com> Date: Wed, 4 Nov 2020 17:11:51 +0800 Subject: [PATCH] update the cmake cmd, test=develop (#28344) --- cmake/external/pybind11.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/external/pybind11.cmake b/cmake/external/pybind11.cmake index 05cc77f23b..353cb5c72f 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 "" -- GitLab