Skip to content

sgx-psw+aesmd: support building with cmake 4 and gcc 15 #1098

Open
phlip9 wants to merge 2 commits intointel:mainfrom
phlip9:sgx-psw-cmake4-compat
Open

sgx-psw+aesmd: support building with cmake 4 and gcc 15 #1098
phlip9 wants to merge 2 commits intointel:mainfrom
phlip9:sgx-psw-cmake4-compat

Conversation

@phlip9
Copy link

@phlip9 phlip9 commented Feb 20, 2026

This PR contains a few small build system fixes that enable sgx-psw/aesmd to compile with CMake 4+ and GCC 15+.

GCC 15+

Various CppMicroServices header files now need #include <cstdint> to compile with >=GCC 15.

CMake 4.0

Bump the aesmd-relevant cmake_minimum_required to 3.10.

CMake 4.0 completely drops support for <3.5. It also emits a deprecation warning for any version <3.10:

CMake Deprecation Warning at CMakeLists.txt:33 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  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.

See: https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features

Bump the aesmd-relevant `cmake_minimum_required` to 3.10.

CMake 4.0 completely drops support for <3.5. It also emits a deprecation
warning for any version <3.10.

```
CMake Deprecation Warning at CMakeLists.txt:33 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  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.
```

See: <https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features>

Signed-off-by: Philip Kannegaard Hayes <philiphayes9@gmail.com>
Various CppMicroServices header files now need `#include <cstdint>` to
compile with >=GCC 15.

Signed-off-by: Philip Kannegaard Hayes <philiphayes9@gmail.com>
@phlip9 phlip9 force-pushed the sgx-psw-cmake4-compat branch from 06d19ca to 6643647 Compare February 20, 2026 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant