fix(cmake): fix issue of cmake generating header files (#4557)

Signed-off-by: zephyrZhu <zenghui_zhu@126.com>
This commit is contained in:
zephyr-zhu
2023-09-15 01:32:19 +08:00
committed by GitHub
parent 06238e4947
commit f6e0ab80eb

View File

@@ -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")