[asio] fix flaky build (#7083)

This commit is contained in:
Phil Christensen 2019-06-28 13:50:32 -07:00 committed by GitHub
parent 79175994c2
commit 62ed7c1731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -3,11 +3,6 @@ project(asio)
add_library(asio INTERFACE) add_library(asio INTERFACE)
# Always use "ASIO_STANDALONE" to avoid boost dependency
file(READ "asio/include/asio/detail/config.hpp" _contents)
string(REPLACE "defined(ASIO_STANDALONE)" "!defined(VCPKG_DISABLE_ASIO_STANDALONE)" _contents "${_contents}")
file(WRITE "asio/include/asio/detail/config.hpp" "${_contents}")
# Export target # Export target
install(TARGETS asio install(TARGETS asio
EXPORT asio EXPORT asio

View File

@ -1,4 +1,4 @@
Source: asio Source: asio
Version: 1.12.2-1 Version: 1.12.2-2
Homepage: https://github.com/chriskohlhoff/asio Homepage: https://github.com/chriskohlhoff/asio
Description: Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach. Description: Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.

View File

@ -9,6 +9,11 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
) )
# Always use "ASIO_STANDALONE" to avoid boost dependency
file(READ "${SOURCE_PATH}/asio/include/asio/detail/config.hpp" _contents)
string(REPLACE "defined(ASIO_STANDALONE)" "!defined(VCPKG_DISABLE_ASIO_STANDALONE)" _contents "${_contents}")
file(WRITE "${SOURCE_PATH}/asio/include/asio/detail/config.hpp" "${_contents}")
# CMake install # CMake install
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake( vcpkg_configure_cmake(