mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-23 11:19:43 +00:00
[asio] fix flaky build (#7083)
This commit is contained in:
parent
79175994c2
commit
62ed7c1731
@ -3,11 +3,6 @@ project(asio)
|
||||
|
||||
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
|
||||
install(TARGETS asio
|
||||
EXPORT asio
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: asio
|
||||
Version: 1.12.2-1
|
||||
Version: 1.12.2-2
|
||||
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.
|
||||
|
@ -9,6 +9,11 @@ vcpkg_from_github(
|
||||
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
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
vcpkg_configure_cmake(
|
||||
|
Loading…
Reference in New Issue
Block a user