Skip to content

Commit d7dd778

Browse files
authored
[clang-doc] update install path to share/clang-doc instead of share/clang (#96555)
Updates the install path for clang-doc to share/clang-doc instead share/clang to avoid confusion
1 parent 05ca207 commit d7dd778

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang-tools-extra/clang-doc/tool/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set(assets
2525
)
2626

2727
set(asset_dir "${CMAKE_CURRENT_SOURCE_DIR}/../assets")
28-
set(resource_dir "${CMAKE_BINARY_DIR}/share/clang")
28+
set(resource_dir "${CMAKE_BINARY_DIR}/share/clang-doc")
2929
set(out_files)
3030

3131
function(copy_files_to_dst src_dir dst_dir file)
@@ -42,7 +42,7 @@ endfunction(copy_files_to_dst)
4242

4343
foreach(f ${assets})
4444
install(FILES ${asset_dir}/${f}
45-
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
45+
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang-doc"
4646
COMPONENT clang-doc)
4747
copy_files_to_dst(${asset_dir} ${resource_dir} ${f})
4848
endforeach(f)

clang-tools-extra/clang-doc/tool/ClangDocMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Example usage for a project using a compile commands database:
188188
llvm::sys::path::native(ClangDocPath, NativeClangDocPath);
189189
llvm::SmallString<128> AssetsPath;
190190
AssetsPath = llvm::sys::path::parent_path(NativeClangDocPath);
191-
llvm::sys::path::append(AssetsPath, "..", "share", "clang");
191+
llvm::sys::path::append(AssetsPath, "..", "share", "clang-doc");
192192
llvm::SmallString<128> DefaultStylesheet;
193193
llvm::sys::path::native(AssetsPath, DefaultStylesheet);
194194
llvm::sys::path::append(DefaultStylesheet,

0 commit comments

Comments
 (0)