Skip to content

build error with cmake 4.2.3 #1100

@hector-cao

Description

@hector-cao

Recent versions of CMake (starting from around 3.25+) removed compatibility with versions older than 3.5. So lots of components of SGX have CMakeLists.txt requests an old version, CMake refuses to run.


CMake Error at /home/ubuntu/DCAP/linux-sgx-2.28/external/openmp/openmp_code/final/build/CMak
eFiles/CMakeTmp/link_flag_check_LIBOMP_HAVE_X_FLAG/CMakeLists.txt:1 (cmake_minimum_required)
:
Compatibility with CMake < 3.5 has been removed from CMake.

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

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

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