From b39f947698c90219d3321d4a3ddf114c0927a632 Mon Sep 17 00:00:00 2001 From: zhouwei25 <52485244+zhouwei25@users.noreply.github.com> Date: Thu, 28 Nov 2019 10:06:04 +0800 Subject: [PATCH] Eliminate the impact on incremental compilation (#21410) --- cmake/external/mklml.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmake/external/mklml.cmake b/cmake/external/mklml.cmake index 456d4d6774..1daf1bb9c9 100644 --- a/cmake/external/mklml.cmake +++ b/cmake/external/mklml.cmake @@ -60,12 +60,10 @@ ExternalProject_Add( CONFIGURE_COMMAND "" BUILD_COMMAND "" UPDATE_COMMAND "" - INSTALL_COMMAND "" + INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory ${MKLML_SOURCE_DIR}/include ${MKLML_INC_DIR} && + ${CMAKE_COMMAND} -E copy_directory ${MKLML_SOURCE_DIR}/lib ${MKLML_LIB_DIR} ) -add_custom_command(TARGET ${MKLML_PROJECT} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy_directory ${MKLML_SOURCE_DIR}/include ${MKLML_INC_DIR} - COMMAND ${CMAKE_COMMAND} -E copy_directory ${MKLML_SOURCE_DIR}/lib ${MKLML_LIB_DIR}) INCLUDE_DIRECTORIES(${MKLML_INC_DIR}) -- GitLab