CMakeLists.windows-x86_64.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # This file was generated 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_library(restricted-boost-thread)
  7. target_compile_options(restricted-boost-thread PUBLIC
  8. -DBOOST_THREAD_USE_LIB
  9. -DBOOST_THREAD_WIN32
  10. )
  11. target_compile_options(restricted-boost-thread PRIVATE
  12. -DBOOST_THREAD_BUILD_LIB
  13. -DBOOST_THREAD_USES_CHRONO
  14. -DWIN32_LEAN_AND_MEAN
  15. -DBOOST_USE_WINDOWS_H
  16. $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
  17. )
  18. target_include_directories(restricted-boost-thread PUBLIC
  19. ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/thread/include
  20. )
  21. target_link_libraries(restricted-boost-thread PUBLIC
  22. contrib-libs-cxxsupp
  23. restricted-boost-assert
  24. restricted-boost-atomic
  25. restricted-boost-bind
  26. restricted-boost-chrono
  27. restricted-boost-concept_check
  28. restricted-boost-config
  29. restricted-boost-container
  30. restricted-boost-container_hash
  31. restricted-boost-core
  32. restricted-boost-date_time
  33. restricted-boost-exception
  34. restricted-boost-function
  35. restricted-boost-io
  36. restricted-boost-move
  37. restricted-boost-optional
  38. restricted-boost-predef
  39. restricted-boost-preprocessor
  40. restricted-boost-smart_ptr
  41. restricted-boost-static_assert
  42. restricted-boost-system
  43. restricted-boost-throw_exception
  44. restricted-boost-tuple
  45. restricted-boost-type_traits
  46. restricted-boost-utility
  47. restricted-boost-winapi
  48. )
  49. target_sources(restricted-boost-thread PRIVATE
  50. ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/thread/src/future.cpp
  51. ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/thread/src/win32/thread.cpp
  52. ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/thread/src/win32/thread_primitives.cpp
  53. ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/thread/src/win32/tss_dll.cpp
  54. ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/thread/src/win32/tss_pe.cpp
  55. )