libunistd icon indicating copy to clipboard operation
libunistd copied to clipboard

vcpkg port

Open SamuelMarks opened this issue 8 months ago • 0 comments

WiP

vcpkg_from_github(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO            robinrowe/libunistd
    REF             8ab9bd613b15302e767003ff1841acfad5d8ac97
    SHA512          802fde13d16ba17a221121fca3c63d2829b65f54a382428f385f273a5978162e61b412a872e1a3c2ddc69094fb23f39422e365357706ccd62b592fbb5da62ba2
    HEAD_REF        master
)

vcpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        -DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
vcpkg_copy_pdbs()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

Current error:

[…]
-- The C compiler identification is MSVC 19.44.35209.0
-- The CXX compiler identification is MSVC 19.44.35209.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
[…]
--- Building libunistd Windows:AMD64: ---
[…]
--- Building library libportable ---
--- Building library libsqlite ---
--- Building library libuuid ---
--- Building library libregex ---
--- Building library libxxhash ---
-- Configuring done (2.8s)
CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
  "libunistd" of type SHARED_LIBRARY
    depends on "libportable" (weak)
  "libportable" of type STATIC_LIBRARY
    depends on "libunistd" (weak)
At least one of these targets is not a STATIC_LIBRARY.  Cyclic dependencies are allowed only among static libraries.
CMake Generate step failed.  Build files cannot be regenerated correctly.
ninja: build stopped: subcommand failed.

SamuelMarks avatar Jun 10 '25 01:06 SamuelMarks