Skip to content

cmake (> 4.0) support and install targets #315

@brunodonassolo

Description

@brunodonassolo

Hello,

Following the question at: https://community.developers.refinitiv.com/discussion/132623/sdk-compatibility-with-cmake-version-4-0.

When compiling the SDK (both github and release from the developer portal) with cmake version (> 4.0), we have the following error:

  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.


-- Configuring incomplete, errors occurred!

The workaround setting the environment variable (export CMAKE_POLICY_VERSION_MINIMUM=3.5) seems to work, but the current setup is not suitable for automated builds for many reasons: environment variables, download dependencies from the internet, no install targets.

In order to easily integrate with other build systems, would it be possible to:

  1. Support natively cmake version (> 4.0)
  2. Support installing the sdk lib and its dependencies. I see a similar request in issues cmake install targets #185, but looks like it was never prioritized.

Thank you!

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