Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit f57d2f4

Browse files
author
Chris Bieneman
committed
Honor system specific paths of MAN pages
Summary: Caught on NetBSD. Patch by: Kamil Rytarowski (krytarowski) Reviewers: beanz, jroelofs Subscribers: cfe-commits, joerg Differential Revision: http://reviews.llvm.org/D14800 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253693 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent cdf86ba commit f57d2f4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: INSTALL.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,4 @@ compiler and header files into the prefix directory selected when LLVM was
4545
configured.
4646

4747
The Clang compiler is available as 'clang' and 'clang++'. It supports a gcc like
48-
command line interface. See the man page for clang (installed into
49-
$prefix/share/man/man1) for more information.
48+
command line interface. See the man page for clang for more information.

Diff for: tools/scan-build/CMakeLists.txt

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
option(CLANG_INSTALL_SCANBUILD "Install the scan-build tool" ON)
22

3+
include(GNUInstallDirs)
4+
35
if (WIN32 AND NOT CYGWIN)
46
set(BinFiles
57
scan-build.bat)
@@ -52,15 +54,15 @@ if(CLANG_INSTALL_SCANBUILD)
5254
endforeach()
5355

5456
foreach(ManPage ${ManPages})
55-
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/share/man/man1/${ManPage}
57+
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/${ManPage}
5658
COMMAND ${CMAKE_COMMAND} -E make_directory
57-
${CMAKE_BINARY_DIR}/share/man/man1
59+
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1
5860
COMMAND ${CMAKE_COMMAND} -E copy
5961
${CMAKE_CURRENT_SOURCE_DIR}/man/${ManPage}
60-
${CMAKE_BINARY_DIR}/share/man/man1/
62+
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/
6163
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man/${ManPage})
62-
list(APPEND Depends ${CMAKE_BINARY_DIR}/share/man/man1/${ManPage})
63-
install(PROGRAMS man/${ManPage} DESTINATION share/man/man1)
64+
list(APPEND Depends ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/${ManPage})
65+
install(PROGRAMS man/${ManPage} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
6466
endforeach()
6567

6668
foreach(ShareFile ${ShareFiles})
@@ -78,4 +80,3 @@ if(CLANG_INSTALL_SCANBUILD)
7880
add_custom_target(scan-build ALL DEPENDS ${Depends})
7981
set_target_properties(scan-build PROPERTIES FOLDER "Misc")
8082
endif()
81-

0 commit comments

Comments
 (0)