1 set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD})
2 set(CMAKE_CXX_FLAGS ${CXX_FLAGS_NOFUZZ})
4 # Needed by LLVM's CMake checks because this file defines multiple targets.
5 set(LLVM_OPTIONAL_SOURCES loop_proto_to_llvm.cpp loop_proto_to_llvm_main.cpp)
7 add_clang_library(clangLoopProtoToLLVM loop_proto_to_llvm.cpp
8 DEPENDS clangCXXLoopProto
9 LINK_LIBS clangCXXLoopProto ${PROTOBUF_LIBRARIES}
12 add_clang_executable(clang-loop-proto-to-llvm loop_proto_to_llvm_main.cpp)
14 target_link_libraries(clang-loop-proto-to-llvm PRIVATE clangLoopProtoToLLVM)