File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 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)
102102set (CPACK_RPM_COMPONENT_INSTALL ON )
103103set (CPACK_ARCHIVE_COMPONENT_INSTALL ON )
104104
105- set (CPACK_COMPONENTS_ALL clangFEWrapper cmoc)
105+ set (CMC_TOOL_NAME cmc)
106+ set (CPACK_COMPONENTS_ALL clangFEWrapper ${CMC_TOOL_NAME} )
106107set (CPACK_GENERATOR "RPM" "DEB" "TXZ" )
107108include (CPack )
Original file line number Diff line number Diff line change 1+ set (CMC_TOOL_NAME cmc)
2+
13set (LLVM_LINK_COMPONENTS
24 Support
35 )
46
5- add_clang_tool (cmoc
7+ add_clang_tool (${CMC_TOOL_NAME}
68 cmoc.cpp
79 Backend.cpp
810 )
@@ -14,12 +16,12 @@ if(OCLOC_API_HEADER)
1416 DIRECTORY
1517 )
1618
17- target_include_directories (cmoc
19+ target_include_directories (${CMC_TOOL_NAME}
1820 PRIVATE
1921 ${OCLOC_API_INCLUDE_DIR}
2022 )
2123
22- target_compile_definitions (cmoc
24+ target_compile_definitions (${CMC_TOOL_NAME}
2325 PRIVATE
2426 "USE_OCLOC_API_HEADER"
2527 )
@@ -35,12 +37,12 @@ else()
3537 set (LIBOCLOC "libocloc.so" )
3638endif ()
3739
38- target_compile_definitions (cmoc
40+ target_compile_definitions (${CMC_TOOL_NAME}
3941 PRIVATE
4042 "LIBOCLOC_NAME=\" ${LIBOCLOC} \" "
4143 )
4244
43- target_link_libraries (cmoc
45+ target_link_libraries (${CMC_TOOL_NAME}
4446 PRIVATE
4547 CMFrontendWrapper
4648 )
You can’t perform that action at this time.
0 commit comments