mirror of https://github.com/microsoft/clang.git
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
This commit is contained in:
parent
cdf86baa9b
commit
f57d2f430d
|
@ -45,5 +45,4 @@ compiler and header files into the prefix directory selected when LLVM was
|
||||||
configured.
|
configured.
|
||||||
|
|
||||||
The Clang compiler is available as 'clang' and 'clang++'. It supports a gcc like
|
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
|
command line interface. See the man page for clang for more information.
|
||||||
$prefix/share/man/man1) for more information.
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
option(CLANG_INSTALL_SCANBUILD "Install the scan-build tool" ON)
|
option(CLANG_INSTALL_SCANBUILD "Install the scan-build tool" ON)
|
||||||
|
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
if (WIN32 AND NOT CYGWIN)
|
if (WIN32 AND NOT CYGWIN)
|
||||||
set(BinFiles
|
set(BinFiles
|
||||||
scan-build.bat)
|
scan-build.bat)
|
||||||
|
@ -52,15 +54,15 @@ if(CLANG_INSTALL_SCANBUILD)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
foreach(ManPage ${ManPages})
|
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
|
COMMAND ${CMAKE_COMMAND} -E make_directory
|
||||||
${CMAKE_BINARY_DIR}/share/man/man1
|
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy
|
COMMAND ${CMAKE_COMMAND} -E copy
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/man/${ManPage}
|
${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})
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man/${ManPage})
|
||||||
list(APPEND Depends ${CMAKE_BINARY_DIR}/share/man/man1/${ManPage})
|
list(APPEND Depends ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_MANDIR}/man1/${ManPage})
|
||||||
install(PROGRAMS man/${ManPage} DESTINATION share/man/man1)
|
install(PROGRAMS man/${ManPage} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
foreach(ShareFile ${ShareFiles})
|
foreach(ShareFile ${ShareFiles})
|
||||||
|
@ -78,4 +80,3 @@ if(CLANG_INSTALL_SCANBUILD)
|
||||||
add_custom_target(scan-build ALL DEPENDS ${Depends})
|
add_custom_target(scan-build ALL DEPENDS ${Depends})
|
||||||
set_target_properties(scan-build PROPERTIES FOLDER "Misc")
|
set_target_properties(scan-build PROPERTIES FOLDER "Misc")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue