diff options
author | vvvv <[email protected]> | 2022-08-08 14:43:22 +0300 |
---|---|---|
committer | vvvv <[email protected]> | 2022-08-08 14:43:22 +0300 |
commit | f5e8e19af3bc909fdb2e42501b3befcb9940f445 (patch) | |
tree | a25aeef3a430071fcf64442925423cabace52548 /contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt | |
parent | cd5f1d506209511017e977c7a7b53c4779d5adb1 (diff) |
fix darwin build
Diffstat (limited to 'contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt')
-rw-r--r-- | contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt b/contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt new file mode 100644 index 00000000000..6859c94e497 --- /dev/null +++ b/contrib/restricted/boost/libs/iostreams/CMakeLists.darwin.txt @@ -0,0 +1,46 @@ + +# This file was gererated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +find_package(ZLIB REQUIRED) + +add_library(boost-libs-iostreams) +target_compile_options(boost-libs-iostreams PRIVATE + -DBOOST_ATOMIC_STATIC_LINK=1 + -DBOOST_All_STATIC_LINK=1 + -DBOOST_CHRONO_STATIC_LINK=1 + -DBOOST_SYSTEM_STATIC_LINK=1 + -DBOOST_TIMER_STATIC_LINK=1 + -DBOOST_ALL_NO_LIB=1 + -DBOOST_ATOMIC_SOURCE + -DBOOST_COROUTINES_SOURCE + -DBOOST_DISABLE_ASSERTS + -DBOOST_SPIRIT_USE_PHOENIX_V3=1 + -DBOOST_SYSTEM_NO_DEPRECATED + -DBOOST_THREAD_BUILD_LIB=1 + -DBOOST_THREAD_DONT_USE_CHRONO=1 + -DBOOST_THREAD_NO_LIB=1 + -DBOOST_THREAD_USE_LIB=1 + -DDATE_TIME_INLINE + -DBOOST_THREAD_DONT_USE_CHRONO + -DBOOST_THREAD_POSIX + -D_DARWIN_C_SOURCE=1 + -DBOOST_IOSTREAMS_USE_DEPRECATED + -Wno-everything +) +target_link_libraries(boost-libs-iostreams PUBLIC + contrib-libs-cxxsupp + contrib-restricted-boost + ZLIB::ZLIB + contrib-libs-libbz2 +) +target_sources(boost-libs-iostreams PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/iostreams/src/file_descriptor.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/iostreams/src/gzip.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/iostreams/src/mapped_file.cpp + ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/iostreams/src/zlib.cpp +) |