global_vars.cmake 860 B

12345678910111213141516171819202122
  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. if(UNIX)
  7. set(COMMON_PROTOC_FLAGS -I=${CMAKE_SOURCE_DIR} -I=${CMAKE_BINARY_DIR})
  8. set(YASM_FLAGS -f elf64 -D UNIX -D _x86_64_ -D_YASM_ -g dwarf2)
  9. set(BISON_FLAGS -v)
  10. set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/)
  11. endif()
  12. if(APPLE)
  13. set(COMMON_PROTOC_FLAGS -I=${CMAKE_SOURCE_DIR} -I=${CMAKE_BINARY_DIR})
  14. set(YASM_FLAGS -f macho64 -D DARWIN -D UNIX -D _x86_64_ -D_YASM_)
  15. set(BISON_FLAGS -v)
  16. set(RAGEL_FLAGS -L -I ${CMAKE_SOURCE_DIR}/)
  17. endif()