Skip to content

Commit

Permalink
Change cmoc tool name to cmc
Browse files Browse the repository at this point in the history
  • Loading branch information
intel-kzhavoro authored and Konstantin Vladimirov committed Dec 10, 2020
1 parent 31afa90 commit df1a6fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion cmfe/lib/FrontendWrapper/package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ set(CPACK_DEB_COMPONENT_INSTALL ON)
set(CPACK_RPM_COMPONENT_INSTALL ON)
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)

set(CPACK_COMPONENTS_ALL clangFEWrapper cmoc)
set(CMC_TOOL_NAME cmc)
set(CPACK_COMPONENTS_ALL clangFEWrapper ${CMC_TOOL_NAME})
set(CPACK_GENERATOR "RPM" "DEB" "TXZ")
include(CPack)
12 changes: 7 additions & 5 deletions cmfe/tools/cmoc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
set(CMC_TOOL_NAME cmc)

set(LLVM_LINK_COMPONENTS
Support
)

add_clang_tool(cmoc
add_clang_tool(${CMC_TOOL_NAME}
cmoc.cpp
Backend.cpp
)
Expand All @@ -14,12 +16,12 @@ if(OCLOC_API_HEADER)
DIRECTORY
)

target_include_directories(cmoc
target_include_directories(${CMC_TOOL_NAME}
PRIVATE
${OCLOC_API_INCLUDE_DIR}
)

target_compile_definitions(cmoc
target_compile_definitions(${CMC_TOOL_NAME}
PRIVATE
"USE_OCLOC_API_HEADER"
)
Expand All @@ -35,12 +37,12 @@ else()
set(LIBOCLOC "libocloc.so")
endif()

target_compile_definitions(cmoc
target_compile_definitions(${CMC_TOOL_NAME}
PRIVATE
"LIBOCLOC_NAME=\"${LIBOCLOC}\""
)

target_link_libraries(cmoc
target_link_libraries(${CMC_TOOL_NAME}
PRIVATE
CMFrontendWrapper
)

0 comments on commit df1a6fd

Please sign in to comment.