Commit graph

19 commits

Author SHA1 Message Date
Steffen Jaeckel
91757cf54d Bump required CMake version & DRY
* The oldest supported Ubuntu Version is 22.04 which comes with CMake 3.22.
* Refactor demos/CMakeLists.txt to set the list of binaries only once.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-11-03 13:57:15 +01:00
Steffen Jaeckel
0c15edb22c Don't abort() in "release" builds
Change the default behavior of `LTC_ARGCHK()` for Release, resp.
Release+Shared Library builds to be non-fatal.

This closes #458

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-11-03 13:51:45 +01:00
Steffen Jaeckel
52b93bf3d1 Revert "cmake: add ccache support"
This reverts commit 93f5348c47.

You should use the CMake flag `-DCMAKE_CXX_COMPILER_LAUNCHER=ccache`
instead.

Sibling-to: https://github.com/libtom/libtommath/pull/577
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-11-03 13:51:29 +01:00
Maurice Heumann
5b93429053
Fix CMake configure on Windows 2025-05-03 10:10:40 +02:00
paperchalice
b508028b14 Quote header list when finding bcrypt
Found try compile source is incorrect, add quote to generate correct  source file.
2025-03-01 19:49:54 +01:00
paperchalice
ae7f26ed44 Check BCryptGenRandom correctly 2025-01-29 19:05:43 +08:00
Steffen Jaeckel
a9bb1c1525 Use cmake-format to format CMake files
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-12-03 19:51:26 +01:00
Steffen Jaeckel
dc945f9697 Add LTC_PTHREAD to pkg-config file if enabled at build time
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-11-20 13:11:59 +01:00
Steffen Jaeckel
124e020437 Add missing package name suffix to CMake/CPack
Fixes e98e0a64e6

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-10-05 11:14:46 +02:00
Steffen Jaeckel
d9b25936fb Fix CMake with MSVC
Reported by @pineappleiceberg in [0]

[0] https://github.com/libtom/libtomcrypt/issues/577#issuecomment-1722545061

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-10-05 11:14:46 +02:00
Steffen Jaeckel
bc59fb82b8 Add support for reading random data from "bcrypt" on Windows
This fixes #577

Patch inspired by the same, but simplified after reading the docs.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-08-07 13:06:53 +02:00
Steffen Jaeckel
e98e0a64e6 Port CMake changes from libtommath for Debian packaging
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-08-07 11:37:19 +02:00
Steffen Jaeckel
93f5348c47 cmake: add ccache support
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-06-19 21:14:38 +02:00
Steffen Jaeckel
4767558fd0 Add correct MPI provider defines to pkg-config cflags
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-06-19 20:24:03 +02:00
Steffen Jaeckel
3f33ccf181 cmake: Add TomsFastMath support
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-06-19 20:23:23 +02:00
Steffen Jaeckel
5330cd1d9b also update pkg-config file generated by cmake
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2023-06-19 19:18:28 +02:00
Steve Manley
2e24591795 Fix CMakeLists.txt which still used variables from the ltm port
It still used `LTM_{C,LD}_FLAGS` instead of `LTC_{C,LD}_FLAGS`.
2023-01-18 19:02:36 +01:00
Steffen Jaeckel
cdc1dbe6f5 port cmake integration changes from libtommath
... also enable building of tests.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2022-10-05 14:49:54 +02:00
Adrian Antonana
a9a010d5fc introduce initial cmake support 2022-09-13 12:29:55 +02:00