diff options
author | Chris Bieneman <beanz@apple.com> | 2015-11-20 18:49:02 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-11-20 18:49:02 +0000 |
commit | 0502e98c8a8deafd69e9558675439b357dcb9aaa (patch) | |
tree | 2c5a79cffa7a9cb316678affefb6ef11fbe47963 | |
parent | 8085475db2e1cd4e1150324c281afe057a008be9 (diff) | |
download | bcm5719-llvm-0502e98c8a8deafd69e9558675439b357dcb9aaa.tar.gz bcm5719-llvm-0502e98c8a8deafd69e9558675439b357dcb9aaa.zip |
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
llvm-svn: 253693
-rw-r--r-- | clang/INSTALL.txt | 3 | ||||
-rw-r--r-- | clang/tools/scan-build/CMakeLists.txt | 13 |
2 files changed, 8 insertions, 8 deletions
diff --git a/clang/INSTALL.txt b/clang/INSTALL.txt index a1652b243ee..fc9bd4620b9 100644 --- a/clang/INSTALL.txt +++ b/clang/INSTALL.txt @@ -45,5 +45,4 @@ compiler and header files into the prefix directory selected when LLVM was configured. The Clang compiler is available as 'clang' and 'clang++'. It supports a gcc like -command line interface. See the man page for clang (installed into -$prefix/share/man/man1) for more information. +command line interface. See the man page for clang for more information. diff --git a/clang/tools/scan-build/CMakeLists.txt b/clang/tools/scan-build/CMakeLists.txt index ec7b8ad0ae3..78c243d8e0d 100644 --- a/clang/tools/scan-build/CMakeLists.txt +++ b/clang/tools/scan-build/CMakeLists.txt @@ -1,5 +1,7 @@ option(CLANG_INSTALL_SCANBUILD "Install the scan-build tool" ON) +include(GNUInstallDirs) + if (WIN32 AND NOT CYGWIN) set(BinFiles scan-build.bat) @@ -52,15 +54,15 @@ if(CLANG_INSTALL_SCANBUILD) endforeach() foreach(ManPage ${ManPages}) - add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/share/man/man1/${ManPage} + add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/${ManPage} COMMAND ${CMAKE_COMMAND} -E make_directory - ${CMAKE_BINARY_DIR}/share/man/man1 + ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1 COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/man/${ManPage} - ${CMAKE_BINARY_DIR}/share/man/man1/ + ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man/${ManPage}) - list(APPEND Depends ${CMAKE_BINARY_DIR}/share/man/man1/${ManPage}) - install(PROGRAMS man/${ManPage} DESTINATION share/man/man1) + list(APPEND Depends ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/${ManPage}) + install(PROGRAMS man/${ManPage} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) endforeach() foreach(ShareFile ${ShareFiles}) @@ -78,4 +80,3 @@ if(CLANG_INSTALL_SCANBUILD) add_custom_target(scan-build ALL DEPENDS ${Depends}) set_target_properties(scan-build PROPERTIES FOLDER "Misc") endif() - |