CMakeLists.txt 811 B

1234567891011121314151617181920212223242526272829303132
  1. # This file was gererated by the build system used internally in the Yandex monorepo.
  2. # Only simple modifications are allowed (adding source-files to targets, adding simple properties
  3. # like target_include_directories). These modifications will be ported to original
  4. # ya.make files by maintainers. Any complex modifications which can't be ported back to the
  5. # original buildsystem will not be accepted.
  6. add_executable(protoc)
  7. target_link_libraries(protoc PUBLIC
  8. contrib-libs-cxxsupp
  9. yutil
  10. library-cpp-lfalloc
  11. library-cpp-cpuid_check
  12. contrib-libs-protoc
  13. )
  14. target_sources(protoc PRIVATE
  15. ${CMAKE_SOURCE_DIR}/contrib/libs/protoc/src/google/protobuf/compiler/main.cc
  16. )
  17. target_link_flags(protoc
  18. PUBLIC
  19. -ldl
  20. -lrt
  21. -Wl,--no-as-needed
  22. -fPIC
  23. -fPIC
  24. -lpthread
  25. -lrt
  26. -ldl
  27. )
  28. vcs_info(protoc)