This repository was archived by the owner on Apr 23, 2020. It is now read-only.
File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -45,5 +45,4 @@ compiler and header files into the prefix directory selected when LLVM was
45
45
configured.
46
46
47
47
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.
Original file line number Diff line number Diff line change 1
1
option (CLANG_INSTALL_SCANBUILD "Install the scan-build tool" ON )
2
2
3
+ include (GNUInstallDirs)
4
+
3
5
if (WIN32 AND NOT CYGWIN )
4
6
set (BinFiles
5
7
scan-build .bat)
@@ -52,15 +54,15 @@ if(CLANG_INSTALL_SCANBUILD)
52
54
endforeach ()
53
55
54
56
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}
56
58
COMMAND ${CMAKE_COMMAND} -E make_directory
57
- ${CMAKE_BINARY_DIR} /share/man /man1
59
+ ${CMAKE_BINARY_DIR} /${CMAKE_INSTALL_MANDIR} /man1
58
60
COMMAND ${CMAKE_COMMAND} -E copy
59
61
${CMAKE_CURRENT_SOURCE_DIR} /man/${ManPage}
60
- ${CMAKE_BINARY_DIR} /share/man /man1/
62
+ ${CMAKE_BINARY_DIR} /${CMAKE_INSTALL_MANDIR} /man1/
61
63
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)
64
66
endforeach ()
65
67
66
68
foreach (ShareFile ${ShareFiles} )
@@ -78,4 +80,3 @@ if(CLANG_INSTALL_SCANBUILD)
78
80
add_custom_target (scan-build ALL DEPENDS ${Depends} )
79
81
set_target_properties (scan-build PROPERTIES FOLDER "Misc" )
80
82
endif ()
81
-
You can’t perform that action at this time.
0 commit comments