Skip to content

Poco 1.14.0 now requires libatomic #4806

@fedapo

Description

@fedapo

This has been observed on Linux machines.
Version 1.14.0 introduces a dependency on library libatomic which doesn't seem to be present in earlier releases.
This forces code using this version to link against a library that, potentially, is not needed as modern processors use intrisics. As a consequence the library must also be available where the final application runs.

I tried to remove it from the CMake scripts and it all seems to work fine. The change is on file PocoFoundationTargets.cmake:
This line:

  INTERFACE_LINK_LIBRARIES "pthread;atomic;dl;rt"

becomes this:

  INTERFACE_LINK_LIBRARIES "pthread;dl;rt"

Would it be possible to consider alternatives to the current situation? Perhaps linking against libatomic could be made a build configuration (CMake build also, please) or it could be removed altogether as it seems to have always been the case in past releases.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions