Commit Graph

2588 Commits

Author SHA1 Message Date
Jonas Nick
2c076d907a Merge bitcoin-core/secp256k1#1711: tests: update Wycheproof
5433648ca0 Fix typos and spellings (Adrien Ufferte)
9ea54c69b7 tests: update Wycheproof files (fanquake)

Pull request description:

ACKs for top commit:
  real-or-random:
    ACK 5433648ca0
  josibake:
    ACK 5433648ca0

Tree-SHA512: abc39f898263da81b53da5223916f079878d31cca850384dd135ee555e7086ecfdbff1d329bf61438d188d76ad87dc610f119009ad91c0d2f8f3fdf99dc12e7a
2025-07-29 14:10:41 +00:00
Adrien Ufferte
5433648ca0 Fix typos and spellings 2025-07-25 09:11:11 +01:00
fanquake
9ea54c69b7 tests: update Wycheproof files
Pulls in relevant changes from https://github.com/C2SP/wycheproof/pull/150.
2025-07-25 09:11:07 +01:00
merge-script
b9313c6e1a Merge bitcoin-core/secp256k1#1708: release cleanup: bump version after 0.7.0
7ab8b0cc01 release cleanup: bump version after 0.7.0 (Jonas Nick)

Pull request description:

  Based on #1707.

ACKs for top commit:
  real-or-random:
    utACK 7ab8b0cc01

Tree-SHA512: 2eea54938ffa2a2c0503607566cb2900b76d5ff6d6285c65afe6fc09fa8b961f210ad915276618c5f43e3ade55252d6533c4c72a5e12c4db4c30fb20235a88df
2025-07-21 20:57:02 +02:00
merge-script
a660a4976e Merge bitcoin-core/secp256k1#1707: release: Prepare for 0.7.0
a3e742d947 release: Prepare for 0.7.0 (Tim Ruffing)
f67b0ac1a0 ci: Don't hardcode ABI version (Tim Ruffing)

Pull request description:

ACKs for top commit:
  sipa:
    utACK a3e742d947
  jonasnick:
    utACK a3e742d947

Tree-SHA512: e0aecf910d2a00d70989285f3b7cf31f0caf336df43a94f8c0083e92cb9194b61e8cf093facacf941991aba9d7d11617cf7569406a4eaeeabaa6763bc80684b6
v0.7.0
2025-07-21 20:34:14 +02:00
Jonas Nick
7ab8b0cc01 release cleanup: bump version after 0.7.0 2025-07-21 17:55:16 +00:00
Tim Ruffing
a3e742d947 release: Prepare for 0.7.0 2025-07-21 17:22:05 +02:00
Tim Ruffing
f67b0ac1a0 ci: Don't hardcode ABI version 2025-07-21 17:22:05 +02:00
merge-script
020ee60495 Merge bitcoin-core/secp256k1#1706: musig/tests: initialize keypair
cde4130898 musig/tests: initialize keypair (Jonas Nick)

Pull request description:

  The keypair is unused in musig_partial_sign, but clang-snapshot gives a compiler warning anyway.

ACKs for top commit:
  real-or-random:
    ACK cde4130898

Tree-SHA512: 2a6c2b31c3ef8b5353c5dbdc156d052ff802d1f62d22214d952ee46223a9f87bc36b3ecdd49788381db379a01be83ded9def752747769b3751f3f058d57403e6
2025-07-21 16:24:44 +02:00
Jonas Nick
cde4130898 musig/tests: initialize keypair
The keypair is unused in musig_partial_sign, but clang-snapshot gives a compiler
warning anyway.
2025-07-21 14:08:23 +00:00
merge-script
6037833c9e Merge bitcoin-core/secp256k1#1702: changelog: update
40b4a06520 changelog: update (Jonas Nick)

Pull request description:

  This update includes all PRs that have a [`needs-changelog` tag](https://github.com/bitcoin-core/secp256k1/pulls?q=is%3Apr+is%3Aclosed+label%3Aneeds-changelog):

  - Make static context const #1639
  - include: remove WARN_UNUSED_RESULT for functions always returning 1 #1659
  - cmake: Bump minimum required CMake version to 3.22 #1675 #1675
  - added: cmake: add a helper for linking into static libs #1678
  - doc: Promote "Building with CMake" to standard procedure #1680
  - also added cmake: Emulate Libtool's behavior on FreeBSD #1685

  I had added the `needs-changelog` tag to #1685 because it seems noteworthy, but otherwise have not found any additional merged PR that would require a changelog entry.

  I'm not sure if the changelog entry for #1678 makes sense (CC theuni)

ACKs for top commit:
  real-or-random:
    ACK 40b4a06520

Tree-SHA512: 678c409aea13ea9e9adaddd92f3d8da4fc98aeb9d661df9ff0f5093ad788c5ca0f194831c134675474cf9540679f3314086ee894f781afa3ea327d8001f53cd9
2025-07-21 15:45:19 +02:00
Jonas Nick
40b4a06520 changelog: update
Co-authored-by: Tim Ruffing <dev@real-or-random.org>
2025-07-21 13:42:45 +00:00
Jonas Nick
5e74086dc8 Merge bitcoin-core/secp256k1#1705: musig/test: Remove dead code
8d967a602b musig/test: Remove dead code (Tim Ruffing)
983711cd6d musig/tests: Refactor vectors_signverify (Tim Ruffing)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK 8d967a602b

Tree-SHA512: 9cc3d84250a677a22badf8fb18d5c159816f2237f9dd8ac796e65a6e89921066aa718b4eb773e9c473ac61d5f18c392ae380d4e4b4e2c3424feff9475a1ce053
2025-07-21 13:06:25 +00:00
merge-script
7c3380423c Merge bitcoin-core/secp256k1#1696: build: Refactor visibility logic and add override
c82d84bb86 build: add CMake option for disabling symbol visibility attributes (Cory Fields)
ce7923874f build: Add SECP256K1_NO_API_VISIBILITY_ATTRIBUTES (Tim Ruffing)
e5297f6d79 build: Refactor visibility logic (Tim Ruffing)

Pull request description:

  This is less invasive than #1695. The latter might be the right thing in a new library (and then we'd probably not support autotools in the first place), but any semantic change to this code has the potential to create news bug, or at least breakages for downstream users.

  This is different from #1677 in that it does not set `hidden` explicitly. I agree with the comment in #1677 that setting `hidden` violates the principle of least surprise.

  So this similar in spirit to #1674. So I wonder if this should also include
  3eef7362c4. I'd say no, `fvisibility` should then set by the user. But can you, in CMake, set `CMAKE_C_VISIBILITY_PRESET` from a parent project?

ACKs for top commit:
  hebasto:
    ACK c82d84bb86, I have reviewed the code and it looks OK.

Tree-SHA512: dad36c32a108d813e8d4e1849260af43f79a9aa8fbfb9a42b07d737e0467924a511110df0a2c6761539a1587b617a1b11123610a3db9d4cdf2b985dfb3eb21da
2025-07-21 14:55:10 +02:00
Tim Ruffing
8d967a602b musig/test: Remove dead code
This avoids a compiler warning on clang-snapshot about &keypair being uninitialized.
2025-07-21 14:47:57 +02:00
Tim Ruffing
983711cd6d musig/tests: Refactor vectors_signverify
for improved readability
2025-07-21 14:44:57 +02:00
merge-script
73a695958a Merge bitcoin-core/secp256k1#1704: cmake: Make secp256k1_objs inherit interface defines from secp256k1
bf082221ff cmake: Make `secp256k1_objs` inherit interface defines from `secp256k1` (Hennadii Stepanov)

Pull request description:

  This PR effectively adds `-DSECP256K1_STATIC` to usage requirements of `secp256k1_objs` on Windows, preventing LNK4217 linker warnings.

  I overlooked this issue while reviewing https://github.com/bitcoin-core/secp256k1/pull/1678.

ACKs for top commit:
  real-or-random:
    utACK bf082221ff

Tree-SHA512: d31e963378b795fd2be88f26574561f1e16b4c2fe10f348f6bfcf1bcc7e68da81ff93475548e9513514ded8eef5a0bd5e2eac2f4a9c5b879e0ab171e49dfcad5
2025-07-21 13:37:30 +02:00
Hennadii Stepanov
bf082221ff cmake: Make secp256k1_objs inherit interface defines from secp256k1
This change effectively adds `-DSECP256K1_STATIC` to usage requirements
of `secp256k1_objs` on Windows, preventing LNK4217 linker warnings.
2025-07-18 17:37:09 +01:00
Cory Fields
c82d84bb86 build: add CMake option for disabling symbol visibility attributes
Co-authored-by: Tim Ruffing <me@real-or-random.org>
2025-07-18 13:59:51 +02:00
Tim Ruffing
ce7923874f build: Add SECP256K1_NO_API_VISIBILITY_ATTRIBUTES 2025-07-18 13:54:48 +02:00
Tim Ruffing
e5297f6d79 build: Refactor visibility logic 2025-07-18 08:54:03 +02:00
merge-script
cbbbf3bd6e Merge bitcoin-core/secp256k1#1699: ci: enable musig module for native macOS arm64 job
3352f9d667 ci: enable musig module for native macOS arm64 job (Sebastian Falbesoner)

Pull request description:

  Seems like this is the only CI job where the musig module wasn't enabled (roughly checked via `$ git grep "SCHNORRSIG: 'yes',"`, to find lists where modules are enabled explicitly).

ACKs for top commit:
  real-or-random:
    ACK 3352f9d667

Tree-SHA512: 70bf57e49fea2477e70331bd264556990dd2b4b57277174aace987a906b9d5a19d240038f2b8845239c2c12c51d7340f91ed779b1ccf8e8b232b8a746278e79c
2025-07-17 07:16:34 +02:00
merge-script
943479a7a3 Merge bitcoin-core/secp256k1#1694: Revert "cmake: configure libsecp256k1.pc during install"
44b205e9ee Revert "cmake: configure libsecp256k1.pc during install" (Daniel Pfeifer)

Pull request description:

  This reverts commit 7106dce6fd.

  This causes a regression for packaging, as the generated `.pc` file will contain the location that was used to build the package archive.

ACKs for top commit:
  real-or-random:
    ACK 44b205e9ee

Tree-SHA512: f4331c23534260bc21e69ccff65abad766e6a51aaba350c40674e32b3200768ca3c6742671e425aa8fcb681deb430cd6b3e20f34b9e8f8ab909371cf5e8976c5
2025-07-15 08:10:52 +02:00
Sebastian Falbesoner
3352f9d667 ci: enable musig module for native macOS arm64 job 2025-07-10 17:46:51 +02:00
Jonas Nick
ad60ef7ea7 Merge bitcoin-core/secp256k1#1689: ci: Convert arm64 Cirrus tasks to GHA jobs
004f57fcd8 ci: Move Valgrind build for `arm64` from Cirrus to GHA (Hennadii Stepanov)
5fafdfc30f ci: Move `gcc-snapshot` build for `arm64` from Cirrus to GHA (Hennadii Stepanov)
e814b79a8b ci: Switch `arm64_debian` from QEMU to native `arm64` Docker image (Hennadii Stepanov)
bcf77346b9 ci: Add `arm64` architecture to `docker_cache` job (Hennadii Stepanov)
b77aae9226 ci: Rename Docker image tag to reflect architecture (Hennadii Stepanov)

Pull request description:

ACKs for top commit:
  real-or-random:
    ACK 004f57fcd8
  jonasnick:
    ACK 004f57fcd8

Tree-SHA512: 5c502ac4ef0f8ca3a02354a07f53dd7818edab233fc55c1a579c48fd03bf879cca725027f435af4fbd92dd732cd2bdbf2935c77e2995eccb34cb54e1d64be61b
2025-07-08 07:37:55 +00:00
merge-script
c498779096 Merge bitcoin-core/secp256k1#1687: cmake: support the use of launchers in ctest -S scripts
0dfe387dbe cmake: support the use of launchers in ctest -S scripts (Daniel Pfeifer)

Pull request description:

  When `CTEST_USE_LAUNCHERS` is set to `ON` in a `ctest -S` script, the configure step fails with the error message:

  ```
  CMake Error:
    CTEST_USE_LAUNCHERS is enabled, but the RULE_LAUNCH_COMPILE global property
    is not defined.

    Did you forget to include(CTest) in the toplevel CMakeLists.txt ?
  ```

  However, `include(CTest)` produces unwanted clutter. `include(CTestUseLaunchers)` is a more lightweight alternative.

  To reproduce the issue, run the following script with and without the PR applied.

  ```cmake
  #!/usr/bin/env -S ctest -VV -S

  set(CTEST_SOURCE_DIRECTORY "/path/to/secp256k1")
  set(CTEST_BINARY_DIRECTORY "/path/to/secp256k1-build")

  set(CTEST_CMAKE_GENERATOR "Ninja")
  set(CTEST_USE_LAUNCHERS ON)

  ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
  ctest_start("Experimental")
  ctest_configure()
  ctest_build()
  ```

ACKs for top commit:
  hebasto:
    ACK 0dfe387dbe.

Tree-SHA512: 643d0fabd19ddfd5a64a0b34cfcca8ea2cff64438ee3441ba9a1745618daf99c468ec201ea6992c542d4e33152f4833691c42c8a90301fe3dfc3f0f49f755e55
2025-07-01 09:00:26 +02:00
Daniel Pfeifer
44b205e9ee Revert "cmake: configure libsecp256k1.pc during install"
This reverts commit 7106dce6fd.

This causes a regression for packaging, as the generated
`.pc` file will contain the location that was used to build
the package archive.
2025-06-30 16:49:14 +02:00
Daniel Pfeifer
0dfe387dbe cmake: support the use of launchers in ctest -S scripts 2025-06-30 12:41:16 +02:00
merge-script
89096c234d Merge bitcoin-core/secp256k1#1692: cmake: configure libsecp256k1.pc during install
7106dce6fd cmake: configure libsecp256k1.pc during install (Daniel Pfeifer)

Pull request description:

  When installing to a given prefix, make sure that the .pc file contains that prefix rather than the value of `CMAKE_INSTALL_PREFIX` that the project was configured with.

ACKs for top commit:
  real-or-random:
    ACK 7106dce6fd I verified that it fixes the path in libsecp256k1.pc

Tree-SHA512: 34841513d2dc52234718eab56ecb9224aa1e13ad2d13cd103624b355e0627c37441363ad24293e07da7a748191e6ed2b67649b489bf874bab35346146b78c16f
2025-06-30 08:13:32 +02:00
Daniel Pfeifer
7106dce6fd cmake: configure libsecp256k1.pc during install
When installing to a given prefix, make sure that the .pc file contains
that prefix rather than the value of CMAKE_INSTALL_PREFIX that the
project was configured with.
2025-06-27 18:59:51 +02:00
merge-script
29e73f4ba5 Merge bitcoin-core/secp256k1#1685: cmake: Emulate Libtool's behavior on FreeBSD
37dd422b5c cmake: Emulate Libtool's behavior on FreeBSD (Hennadii Stepanov)

Pull request description:

  Building the master branch @ f24b838bed on FreeBSD 14.3:
  - with Autotools:
  ```
  $ ./autogen.sh
  $ ./configure --disable-static --prefix /tmp/AUTOTOOLS
  $ gmake
  $ gmake install
  $ tree /tmp/AUTOTOOLS/lib
  /tmp/AUTOTOOLS/lib
  ├── libsecp256k1.la
  ├── libsecp256k1.so -> libsecp256k1.so.5.0.1
  ├── libsecp256k1.so.5 -> libsecp256k1.so.5.0.1
  ├── libsecp256k1.so.5.0.1
  └── pkgconfig
      └── libsecp256k1.pc

  2 directories, 5 files
  ```
  - with CMake:
  ```
  $ cmake -B build -DCMAKE_INSTALL_PREFIX=/tmp/CMAKE
  $ cmake --build build
  $ cmake --install build
  $ tree /tmp/CMAKE/lib
  /tmp/CMAKE/lib
  ├── cmake
  │   └── libsecp256k1
  │       ├── libsecp256k1-config-version.cmake
  │       ├── libsecp256k1-config.cmake
  │       ├── libsecp256k1-targets-relwithdebinfo.cmake
  │       └── libsecp256k1-targets.cmake
  ├── libsecp256k1.so -> libsecp256k1.so.5
  ├── libsecp256k1.so.5
  └── pkgconfig
      └── libsecp256k1.pc

  4 directories, 7 files
  ```

  With this PR:
  ```
  $ cmake -B build -DCMAKE_INSTALL_PREFIX=/tmp/CMAKE+PR
  $ cmake --build build
  $ cmake --install build
  $ tree /tmp/CMAKE+PR/lib
  /tmp/CMAKE+PR/lib
  ├── cmake
  │   └── libsecp256k1
  │       ├── libsecp256k1-config-version.cmake
  │       ├── libsecp256k1-config.cmake
  │       ├── libsecp256k1-targets-relwithdebinfo.cmake
  │       └── libsecp256k1-targets.cmake
  ├── libsecp256k1.so -> libsecp256k1.so.5
  ├── libsecp256k1.so.5 -> libsecp256k1.so.5.0.1
  ├── libsecp256k1.so.5.0.1
  └── pkgconfig
      └── libsecp256k1.pc

  4 directories, 8 files
  ```

  From [FreeBSD Developers' Handbook](https://docs.freebsd.org/en/books/developers-handbook/policies/#policies-shlib):
  > If you are adding shared library support to a port or other piece of software that does not have one, the version numbers should follow these rules. Generally, the resulting numbers will have nothing to do with the release version of the software.
  >
  > For ports:
  >
  >    - Prefer using the number already selected by upstream
  >
  >    - If upstream provides symbol versioning, ensure that we use their script

ACKs for top commit:
  real-or-random:
    utACK 37dd422b5c

Tree-SHA512: b603d7e293ae1fb15c2b3c05957dcc3cbe94294083ad1d8cb00b06b0e295597fa09719d32c18d628670952b6d00467f5bc884be9ab791baf59ec265e26032470
2025-06-24 11:45:28 +02:00
merge-script
746e36b141 Merge bitcoin-core/secp256k1#1678: cmake: add a helper for linking into static libs
145ae3e28d cmake: add a helper for linking into static libs (Cory Fields)

Pull request description:

  As discussed here: https://github.com/bitcoin-core/secp256k1/pull/1674#issuecomment-2934819801

  Parent projects (Bitcoin Core in this case) may wish to include secp256k1 in another static library (libbitcoinkernel) so that users are not forced to bring their own static libsecp256k1.

  Unfortunately, CMake lacks the machinery to link (combine) one static lib into another.

  To work around this, secp256k1_objs is exposed as an interface library which parent projects can "link" into static libs.

ACKs for top commit:
  hebasto:
    ACK 145ae3e28d, tested on Ubuntu 24.04 using cmake 3.22.6 and the default cmake 3.28.3.
  stickies-v:
    Light ACK 145ae3e28d

Tree-SHA512: bfe72e3f337eadce8bdbe613e4ce2f2cd92046f811c447311e5670af9d52dbf5b9dc91866f69251f52a7632ad66d6df102fb6f4c1de2688bb7611b7b42e969a3
2025-06-24 11:40:26 +02:00
merge-script
a28c2ffa5c Merge bitcoin-core/secp256k1#1683: README: add link to musig example
819210974b README: add link to musig example, generalize module enabling hint (Sebastian Falbesoner)

Pull request description:

ACKs for top commit:
  real-or-random:
    ACK 819210974b

Tree-SHA512: 9bfc7e59f0b6c6bacc591abe9835d1e6129e4daf286b91b35fad83ddf7d870a534d83ce2c27165ed8612f05695a5f15a3ef7bebbcbe63a5fe843d4c0617ebc9f
2025-06-24 11:38:17 +02:00
merge-script
2a9d374735 Merge bitcoin-core/secp256k1#1690: ci: Bump GCC snapshot major version to 16
add146e101 ci: Bump GCC snapshot major version to 16 (Hennadii Stepanov)

Pull request description:

ACKs for top commit:
  maflcko:
    lgtm ACK add146e101
  real-or-random:
    ACK add146e101

Tree-SHA512: 5569155f85982a4eed0d804963799962a1c0d20c5dde2432ce67b8ddca5a1f2dfebf796a5e8fc0603a06c8f159bd33f1ec620043db6f444134b9500b30513b27
2025-06-20 08:41:39 +02:00
Hennadii Stepanov
add146e101 ci: Bump GCC snapshot major version to 16 2025-06-19 21:12:05 +01:00
Hennadii Stepanov
004f57fcd8 ci: Move Valgrind build for arm64 from Cirrus to GHA 2025-06-19 20:09:36 +01:00
Hennadii Stepanov
5fafdfc30f ci: Move gcc-snapshot build for arm64 from Cirrus to GHA 2025-06-19 20:09:01 +01:00
Hennadii Stepanov
e814b79a8b ci: Switch arm64_debian from QEMU to native arm64 Docker image 2025-06-19 20:08:32 +01:00
Hennadii Stepanov
bcf77346b9 ci: Add arm64 architecture to docker_cache job 2025-06-19 19:09:18 +01:00
Hennadii Stepanov
b77aae9226 ci: Rename Docker image tag to reflect architecture 2025-06-19 18:57:48 +01:00
Cory Fields
145ae3e28d cmake: add a helper for linking into static libs
Parent projects (Bitcoin Core in this case) may wish to include secp256k1
in another static library (libbitcoinkernel) so that users are not forced
to bring their own static libsecp256k1.

Unfortunately, CMake lacks the machinery to link (combine) one static lib
into another.

To work around this, secp256k1_objs is exposed as an interface library which
parent projects can "link" into static libs..
2025-06-16 16:59:52 +00:00
Sebastian Falbesoner
819210974b README: add link to musig example, generalize module enabling hint
Co-authored-by: Jonas Nick <jonasd.nick@gmail.com>
2025-06-16 16:53:47 +02:00
merge-script
95db29b144 Merge bitcoin-core/secp256k1#1679: cmake: Use PUBLIC_HEADER target property in installation logic
6f67151ee2 cmake: Use `PUBLIC_HEADER` target property (Hennadii Stepanov)
c32715b2a0 cmake, move-only: Move module option processing to `src/CMakeLists.txt` (Hennadii Stepanov)

Pull request description:

  This PR updates the installation logic to the idiomatic approach.

ACKs for top commit:
  theuni:
    utACK 6f67151ee2

Tree-SHA512: b305c6ef15e8334a570823af4482dc097c09a1eec6472098bd2767bc2ad99c3c9e4b1b650087768160e682792ae8da15086bf5397b1d0f5fde4208b489781698
2025-06-16 08:24:40 +02:00
Hennadii Stepanov
37dd422b5c cmake: Emulate Libtool's behavior on FreeBSD 2025-06-11 01:01:34 +01:00
merge-script
f24b838bed Merge bitcoin-core/secp256k1#1680: doc: Promote "Building with CMake" to standard procedure
3f31ac43e0 doc: Promote "Building with CMake" to standard procedure (Hennadii Stepanov)

Pull request description:

  The CMake-based build system has demonstrated its maturity through its use in Bitcoin Core 29.0.

ACKs for top commit:
  real-or-random:
    utACK 3f31ac43e0

Tree-SHA512: be83494b60f4fd3ff08f4199d9cda4663b89efff32f3ec3bb856843707eeb6592ffdc6c84fdc18242cad422795901fb21e13cb15edd23a5d9cf2784324f8f7e0
2025-06-05 22:31:16 +02:00
Hennadii Stepanov
3f31ac43e0 doc: Promote "Building with CMake" to standard procedure
The CMake-based build system has demonstrated its maturity through its
use in Bitcoin Core 29.0.
2025-06-04 19:13:49 +01:00
Hennadii Stepanov
6f67151ee2 cmake: Use PUBLIC_HEADER target property
This change simplifies the installation logic.
2025-06-04 14:46:10 +01:00
Hennadii Stepanov
c32715b2a0 cmake, move-only: Move module option processing to src/CMakeLists.txt
This change simplifies the following commit.
2025-06-04 13:13:33 +01:00
merge-script
201b2b8f06 Merge bitcoin-core/secp256k1#1675: cmake: Bump minimum required CMake version to 3.22
3af71987a8 cmake: Bump minimum required CMake version to 3.22 (Hennadii Stepanov)

Pull request description:

  Ubuntu 20.04 LTS has [reached](https://wiki.ubuntu.com/Releases) the End of Standard Support. There no longer appear to be compelling reasons to maintain compatibility with CMake 3.16.
  The new suggested minimum, CMake 3.22, is shipped with Ubuntu 22.04 LTS, which is supported until April 2027.

  This PR also introduces new CMake policies, from CMP0098 to CMP0128. Some of these may warrant the reviewers' attention:
  - [CMP0099: Link properties are transitive over private dependencies of static libraries.](https://cmake.org/cmake/help/latest/policy/CMP0099.html)
  - [CMP0117: MSVC RTTI flag /GR is not added to CMAKE_CXX_FLAGS by default.](https://cmake.org/cmake/help/latest/policy/CMP0117.html)
  - [CMP0126: set(CACHE) does not remove a normal variable of the same name.](https://cmake.org/cmake/help/latest/policy/CMP0126.html)
  - [CMP0128: Selection of language standard and extension flags improved.](https://cmake.org/cmake/help/latest/policy/CMP0128.html)

ACKs for top commit:
  real-or-random:
    utACK 3af71987a8

Tree-SHA512: f0c70dd5beafe830513895f076cafa6902dfcaab79d40bf9e7b27f14d9c4818f91d75f6aa993ba843f1d28ccd13cf466ad11dca46ca022cab1b43aace17d3ff7
2025-06-04 12:29:59 +02:00
Hennadii Stepanov
3af71987a8 cmake: Bump minimum required CMake version to 3.22
Ubuntu 20.04 LTS has reached the end of standard support. There no
longer appear to be compelling reasons to maintain compatibility with
CMake 3.16.
The new suggested minimum, CMake 3.22, is shipped with Ubuntu 22.04 LTS,
which is supported until April 2027.

This change also introduces new CMake policies, from CMP0098 to CMP0128.
2025-05-30 11:59:31 +01:00