Skip to content

build: remove pthread detection on Windows #3262

Description

@vtorri

in CMakeLists.txt:

if(UNIX OR MINGW)
    # Find out if we have threading available
    set(THREADS_PREFER_PTHREAD_FLAG ON)
    find_package(Threads)
    target_link_libraries(avif_obj PRIVATE m Threads::Threads)
endif()

but in reformat.c (only file where pthread is used), the windows code uses native thread API

maybe one should use if (UNIX) only ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions