Skip to content

Commit df1a6fd

Browse files
intel-kzhavoroKonstantin Vladimirov
authored and
Konstantin Vladimirov
committed
Change cmoc tool name to cmc
1 parent 31afa90 commit df1a6fd

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

cmfe/lib/FrontendWrapper/package.cmake

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ set(CPACK_DEB_COMPONENT_INSTALL ON)
102102
set(CPACK_RPM_COMPONENT_INSTALL ON)
103103
set(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})
106107
set(CPACK_GENERATOR "RPM" "DEB" "TXZ")
107108
include(CPack)

cmfe/tools/cmoc/CMakeLists.txt

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
set(CMC_TOOL_NAME cmc)
2+
13
set(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")
3638
endif()
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
)

0 commit comments

Comments
 (0)