From f6e0ab80ebae6bcbc41dfe64c45f7d9d5ea0cf10 Mon Sep 17 00:00:00 2001 From: zephyr-zhu Date: Fri, 15 Sep 2023 01:32:19 +0800 Subject: [PATCH] fix(cmake): fix issue of cmake generating header files (#4557) Signed-off-by: zephyrZhu --- env_support/cmake/custom.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env_support/cmake/custom.cmake b/env_support/cmake/custom.cmake index a9b79858d..5568e61dd 100644 --- a/env_support/cmake/custom.cmake +++ b/env_support/cmake/custom.cmake @@ -66,7 +66,7 @@ if("${INC_INSTALL_DIR}" STREQUAL "") endif() install( - DIRECTORY "${CMAKE_SOURCE_DIR}/src" + DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src" DESTINATION "${CMAKE_INSTALL_PREFIX}/${INC_INSTALL_DIR}/" FILES_MATCHING PATTERN "*.h")