cpm-cmake / CPM.cmake

📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can you help with compiling `libtins` library using CPM?

traversebitree opened this issue · comments

I'm trying to use CPM to compile the libtins library as a dependency for my application. The following is what I wrote, but it keeps failing, the OS is Windows 11.

CPMAddPackage(
    NAME winflexbison
    GIT_TAG v2.5.25
    GITHUB_REPOSITORY lexxmark/winflexbison
    SYSTEM
    OPTIONS "BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}"
)

CPMAddPackage(
    NAME libpcap
    GIT_TAG libpcap-1.10.4
    GITHUB_REPOSITORY the-tcpdump-group/libpcap
    SYSTEM
    OPTIONS "BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}"
            "DISABLE_BLUETOOTH TRUE"
            "DISABLE_DBUS TRUE"
            "DISABLE_DPDK TRUE"
            "DISABLE_RDMA TRUE"
            "DISABLE_DAG TRUE"
            "DISABLE_SEPTEL TRUE"
            "DISABLE_TC TRUE"
            "ENABLE_REMOTE FALSE"
)

CPMAddPackage(
    NAME libtins
    GIT_TAG v4.5
    GITHUB_REPOSITORY mfontanini/libtins
    SYSTEM
    OPTIONS "BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}"
            "LIBTINS_ENABLE_CXX11 TRUE"
            "LIBTINS_ENABLE_ACK_TRACKER FALSE"
            "LIBTINS_ENABLE_WPA2 FALSE"
            "LIBTINS_ENABLE_DOT11 FALSE"
)

image