mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 01:29:00 +08:00
a56d892ac7
Disable optional dependencies. I don't know what caused the race condition but it seems to be fixed. - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [x] The "supports" clause reflects platforms that may be fixed by this new version. - [x] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [x] Any patches that are no longer applied are deleted from the port's directory. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file. ``` -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - not found -- Found Threads: TRUE CMake Error: Running 'C:/PROGRA~1/MICROS~1/2022/ENTERP~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe' '-C' 'D:/b/async-simple/src/v1.3-3db60bdafc.clean/CMakeFiles/CMakeTmp' '-t' 'recompact' failed with: ninja: error: loading 'build.ninja': The system cannot find the file specified. ```
35 lines
1.0 KiB
CMake
35 lines
1.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO alibaba/async_simple
|
|
REF "v${VERSION}"
|
|
SHA512 7686d8c98e5e87cf88c24488e4c0b528b29011ef48c25156c57695208dab75ee2f28b6f36e2612db2bf4644b50f4c1d4a7ebc54f16bc035cb106239d5b335c77
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
-DASYNC_SIMPLE_ENABLE_TESTS=OFF
|
|
-DASYNC_SIMPLE_BUILD_DEMO_EXAMPLE=OFF
|
|
-DASYNC_SIMPLE_ENABLE_ASAN=OFF
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Benchmark=ON
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Aio=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME async_simple)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(GLOB LIBS "${CURRENT_PACKAGES_DIR}/debug/lib/*async_simple*")
|
|
|
|
list(LENGTH LIBS LIB_CNT)
|
|
if (LIB_CNT EQUAL 0)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|