From a06b4321be5b7ec64a6869da5fc888fb894252f7 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Mon, 22 Aug 2022 13:11:17 +0800 Subject: [PATCH] cmake: fix install cxx api headers Close #1882 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e1c60309..e8ed4547 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -57,7 +57,7 @@ update_cached_list(MK_LINK_LIBRARIES ZLMediaKit::MediaKit) # 未在使用 if(ENABLE_CXX_API) # 保留目录结构 - install(DIRECTORY ${MediaKit_Root}/ + install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${INSTALL_PATH_INCLUDE}/ZLMediaKit REGEX ".*[.](md|cpp)$" EXCLUDE) install(TARGETS zlmediakit