mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 16:38:07 +08:00
0e759709dd
* Update boost to 1.69. Fixes #5023 - Remove boost-signal (rationale: deprecated and removed in 1.69) - Remove boost-hana workaround by xiangfan-ms #4186 #3579 (rationale: 1.69 incorporates required fixes in hana master branch; builds fine in VS2017 15.9) * [boost-signals] Restore signals from boost 1.68 because it is required by wt * [boost-vcpkg-helpers] Improve dependency detection * [boost-iostreams] Revert to cmake build to enable dependencies * [boost-iostreams] Fix use of zstd in static builds * [libtorrent] Update to 1.2.0 * [wt] Update to 4.0.5 * [boost-safe-numerics] [boost-vcpkg-helpers] Added safe_numerics; slight mod to regex match * [hpx] Backport boost 1.69 fixes * [libtorrent] Clean up cmake file installation * [boost-type-traits] Fix MSVC arm
41 lines
1.3 KiB
CMake
41 lines
1.3 KiB
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(boost-iostreams)
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
add_definitions(-DBOOST_IOSTREAMS_DYN_LINK=1)
|
|
endif()
|
|
add_definitions(
|
|
-DBOOST_ALL_NO_LIB=1
|
|
-DBOOST_IOSTREAMS_USE_DEPRECATED
|
|
)
|
|
include_directories(include)
|
|
file(GLOB SOURCES src/*.cpp)
|
|
add_library(boost_iostreams ${SOURCES})
|
|
|
|
if(MSVC)
|
|
set_property(TARGET boost_iostreams PROPERTY OUTPUT_NAME_RELEASE boost_iostreams-vc140-mt)
|
|
set_property(TARGET boost_iostreams PROPERTY OUTPUT_NAME_DEBUG boost_iostreams-vc140-mt-gd)
|
|
|
|
set_property(TARGET boost_iostreams PROPERTY RUNTIME_OUTPUT_NAME_RELEASE boost_iostreams)
|
|
set_property(TARGET boost_iostreams PROPERTY RUNTIME_OUTPUT_NAME_DEBUG boost_iostreamsd)
|
|
endif()
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
target_link_libraries(boost_iostreams PRIVATE ZLIB::ZLIB)
|
|
|
|
find_package(BZip2 REQUIRED)
|
|
target_link_libraries(boost_iostreams PRIVATE BZip2::BZip2)
|
|
|
|
find_package(LibLZMA REQUIRED)
|
|
target_include_directories(boost_iostreams PRIVATE ${LIBLZMA_INCLUDE_DIRS})
|
|
target_link_libraries(boost_iostreams PRIVATE ${LIBLZMA_LIBRARIES})
|
|
|
|
find_library(ZSTD_LIBRARY NAMES zstdd zstd_staticd zstd zstd_static)
|
|
target_link_libraries(boost_iostreams PRIVATE ${ZSTD_LIBRARY})
|
|
|
|
install(TARGETS boost_iostreams
|
|
RUNTIME DESTINATION bin
|
|
ARCHIVE DESTINATION lib
|
|
LIBRARY DESTINATION lib
|
|
)
|