[llvm-shlib] Fix the version naming style of libLLVM for Windows (#85710)
[llvm-project.git] / bolt / tools / driver / CMakeLists.txt
blob9bf9ff85edc7b450789e74af6167cedbc7b041b7
1 set(LLVM_LINK_COMPONENTS
2   ${LLVM_TARGETS_TO_BUILD}
3   MC
4   Object
5   Support
6   )
8 if (BOLT_ENABLE_RUNTIME)
9   set(BOLT_DRIVER_DEPS "bolt_rt")
10 else()
11   set(BOLT_DRIVER_DEPS "")
12 endif()
14 add_bolt_tool(llvm-bolt
15   llvm-bolt.cpp
17   DISABLE_LLVM_LINK_LLVM_DYLIB
19   DEPENDS
20   ${BOLT_DRIVER_DEPS}
21   )
23 target_link_libraries(llvm-bolt
24   PRIVATE
25   LLVMBOLTProfile
26   LLVMBOLTRewrite
27   LLVMBOLTUtils
28   )
30 add_bolt_tool_symlink(perf2bolt llvm-bolt)
31 add_bolt_tool_symlink(llvm-boltdiff llvm-bolt)
33 add_dependencies(bolt llvm-bolt)
35 include_directories(${BOLT_SOURCE_DIR}/lib)