File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ set(CPACK_DEB_COMPONENT_INSTALL ON)
102
102
set (CPACK_RPM_COMPONENT_INSTALL ON )
103
103
set (CPACK_ARCHIVE_COMPONENT_INSTALL ON )
104
104
105
- set (CPACK_COMPONENTS_ALL clangFEWrapper cmoc)
105
+ set (CMC_TOOL_NAME cmc)
106
+ set (CPACK_COMPONENTS_ALL clangFEWrapper ${CMC_TOOL_NAME} )
106
107
set (CPACK_GENERATOR "RPM" "DEB" "TXZ" )
107
108
include (CPack)
Original file line number Diff line number Diff line change
1
+ set (CMC_TOOL_NAME cmc)
2
+
1
3
set (LLVM_LINK_COMPONENTS
2
4
Support
3
5
)
4
6
5
- add_clang_tool(cmoc
7
+ add_clang_tool(${CMC_TOOL_NAME}
6
8
cmoc.cpp
7
9
Backend.cpp
8
10
)
@@ -14,12 +16,12 @@ if(OCLOC_API_HEADER)
14
16
DIRECTORY
15
17
)
16
18
17
- target_include_directories (cmoc
19
+ target_include_directories (${CMC_TOOL_NAME}
18
20
PRIVATE
19
21
${OCLOC_API_INCLUDE_DIR}
20
22
)
21
23
22
- target_compile_definitions (cmoc
24
+ target_compile_definitions (${CMC_TOOL_NAME}
23
25
PRIVATE
24
26
"USE_OCLOC_API_HEADER"
25
27
)
@@ -35,12 +37,12 @@ else()
35
37
set (LIBOCLOC "libocloc.so" )
36
38
endif ()
37
39
38
- target_compile_definitions (cmoc
40
+ target_compile_definitions (${CMC_TOOL_NAME}
39
41
PRIVATE
40
42
"LIBOCLOC_NAME=\" ${LIBOCLOC} \" "
41
43
)
42
44
43
- target_link_libraries (cmoc
45
+ target_link_libraries (${CMC_TOOL_NAME}
44
46
PRIVATE
45
47
CMFrontendWrapper
46
48
)
You can’t perform that action at this time.
0 commit comments