aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix CMake build on FreeBSDTheo Buehler2024-10-161-0/+4
| | | | | | | FreeBSD's libc has a stub implementation of pthread_once() that returns ENOSYS and doesn't seem to call the init routine. You need to link with pthread for this to work. This PR does this and fixes regress failures for CMake builds on this platform. This likely never worked.
* don't override language property for ASM files as CBrent Cook2024-10-081-1/+1
| | | | | | As of CMake 3.20, this causes the files to be built _as_ C, instead of just with a C compiler. This also properly specifies the languages in the project call.
* fix syslog_r and pipe2 detectionTheo Buehler2024-10-021-1/+1
|
* Fix syslog_r detectionTheo Buehler2024-10-021-1/+1
|
* Revert "bump minimum CMake version for DLL_NAME_WITH_SOVERSION"Theo Buehler2024-10-021-1/+1
| | | | This reverts commit 5feccf86658d09b917c005bfb43191dd38f38c83.
* Land #1079, Switch to check_symbol_exists() for simple casesBrent Cook2024-10-011-17/+22
|\
| * Switch to check_symbol_exists() in simplest casesTheo Buehler2024-08-211-17/+22
| | | | | | | | | | | | | | | | There are a few exceptions. Some require _GNU_SOURCE, some are in the weird strings.h header, some are probably too new to be found in the standard locations. Fixes #1077
* | Land #1084, Append version to dll on CMakeBrent Cook2024-10-011-1/+1
|\ \
| * | bump minimum CMake version for DLL_NAME_WITH_SOVERSIONBrent Cook2024-10-011-1/+1
| |/
* / Fix includedir on CMakeYang Kun2024-08-211-1/+1
|/
* cmake: replace `CMAKE_SYSTEM_PROCESSOR` with `HOST_*`Viktor Szakats2024-08-071-5/+4
| | | | Follow-up to e99a7dd931065e4b3535cb3e2e8bee8c3db0afaf #1075
* Update CMakeLists.txtrfl8902024-08-021-1/+1
|
* CMakeLists.txt: Fix HOST variable for ppc64OPNA26082024-07-191-1/+1
| | | | The code here defined HOST_PPC64, but the rest of the build system expects HOST_POWERPC64.
* use compat implementations of strlcpy and strlcatMoustaphaSaad2024-06-191-7/+10
| | | | strlcpy and strlcat Emscripten implementations cause ASAN errors. This commit disables strlcpy and strlcat detection and uses the compat implementations instead.
* Remove timegm() compatTheo Buehler2024-05-251-5/+0
| | | | | Now that all uses of gmtime_r() and timegm() have been converted to OPENSSL_gmtime() and OPENSSL_timegm(), this is no longer needed.
* Update CMakeLists.txtJim B2024-04-071-1/+1
| | | Co-authored-by: Viktor Szakats <vszakats@users.noreply.github.com>
* Update CMakeLists.txtJim B2024-04-061-13/+9
| | | Collapse the same if condition blocks into one block. Include the uninstall rule when building install rules; if there was no install, shouldn't need uninstall (for this build; a previous build that was installed would have an uninstall rule)
* cmake: disable default NDEBUG differentlyViktor Szakats2024-03-111-2/+7
| | | | | | | | | | | Before this patch `NDEBUG` was force-disabled, preventing a build with debug asserts disabled. After this patch `NDEBUG` works again when passed as a custom build option, e.g.: `-DCMAKE_C_FLAGS=-DNDEBUG` Previously submitted as #988, which was merged, but the commit vanished from master and ended up missing from both 3.8.3 and 3.9.0 releases.
* Land #989 cmake: disable ASM for Windows ARM64Brent Cook2024-02-121-0/+3
|\
| * cmake: disable ASM for Windows ARM64Viktor Szakats2024-01-021-0/+3
| | | | | | | | | | With ASM support the builds either exit with an assert or hang (with asserts disabled).
* | Land #998, Windows: Improve check for endianness when using Visual StudioBrent Cook2024-02-121-0/+9
|\ \
| * | Windows: Improve the check for endianness when using Visual Studio.Christian Andersen2024-02-041-0/+9
| |/ | | | | | | | | | | | | | | Visual studio does not define __BYTE_ORDER__ so all architectures were detected as LITTLE_ENDIAN since both __BYTE_ORDER__ and __ORDER_LITTLE_ENDIAN__ would evaluate to 0 and compare equal. This updates the checks to use CMakes detection of endianness, with a hard error, if this also fails.
* / Windows: Don't set -Wall when compiling with Visual Studio.Christian Andersen2024-02-041-2/+2
|/ | | | | As it enables a lot of spammed warnings that are not part of W4. This reduces the warnings a lot when compiling LibreSSL in CLion for me.
* Fix timingsafe memcmp detectionTheo Buehler2023-12-201-2/+2
|
* cmake: limit some macros to mingwViktor Szakats2023-12-141-5/+7
| | | | | | Syncing this up with autotools. Also use the built-in `MINGW` variable.
* try fixing missing tls-compat for testsViktor Szakats2023-12-141-2/+2
|
* cmake: stop exporting compat functionsViktor Szakats2023-12-141-3/+3
|
* cmake: auto-detect `strtonum`Viktor Szakats2023-12-111-0/+5
| | | | | | | | | | | | | | Notice that just like in autotools, this detection also doesn't take into account the targeted OS version. Meaning it detects `strtonum` even if targeting e.g. macOS older than release v11 Big Sur (which introduced this funcitions), if the SDK declares it. Wrong detection will either cause a binary broken on older macOS and/or trigger compiler warnings. Ref: https://github.com/libressl/portable/issues/928#issuecomment-1850178282 Ref: https://github.com/libressl/portable/issues/928#issuecomment-1850276298 Prerequisite: https://github.com/libressl/portable/issues/928#issuecomment-1850356408
* Land #938, cmake: simplify if expressions, accept CPU values more consistentlyBrent Cook2023-11-071-19/+19
|\
| * always check `CMAKE_SYSTEM_PROCESSOR` with `MATCHES`Viktor Szakats2023-11-071-4/+4
| | | | | | | | | | | | This makes it accept values consistently. Before this patch mingw-w64, Apple and SunOS did not accept a CPU if it had a suffix or prefix (e.g. a triplet), while other targets did.
| * simplify `MATCHES`/`STREQUAL` syntaxViktor Szakats2023-11-071-19/+19
| |
* | cmake: stop passing unused C macrosViktor Szakats2023-11-071-1/+1
|/ | | | | | | | - `-DCPPFLAGS`: probably a copy-paste typo from the initial CMake commit. - `-DNO_CRYPT`: `NO_CRYPT` is no longer used in the source and this macro is no longer set by autotools.
* cmake: fix arm64 to not trigger armv4 ASMViktor Szakats2023-11-071-1/+2
| | | | | Reported here: https://github.com/libressl/portable/pull/935#issuecomment-1798345787
* Land #932, use existing crypto/ssl libs for tls testsBrent Cook2023-11-051-1/+1
|\
| * slim `tls-static` library (used in tests)Viktor Szakats2023-11-041-1/+1
| | | | | | | | | | | | | | | | | | Instead of including a full copy of libcrypto and libssl in libtls-static, link existing libcrytpo-static and libssl-static to the test targets. This wasn't causing any issue, just unnecessarily duplicating a lot of objects.
* | also fix ocspcheck and nc, dedupe build logicViktor Szakats2023-11-051-6/+12
|/
* reenable assembly for MSVCBrent Cook2023-10-301-3/+0
|
* adjust how sizeof time_t is set, the current way causes issues with MSVC ↵Brent Cook2023-10-291-1/+0
| | | | 2022's preprocessor
* Land #913, CMake build fixesBrent Cook2023-10-291-2/+2
|\
| * Consistently use CMAKE_CURRENT_BINARY_DIRMarc Aldorasi2023-09-121-2/+2
| |
* | disable MSVC x64 asmBrent Cook2023-10-291-0/+3
| |
* | remove unneeded switch for MSVC, cleanup comment alignmentBrent Cook2023-10-291-10/+6
| |
* | Fix processor detection in CMakeLists.txtJiajie Chen2023-09-041-10/+10
|/
* enable asserts regardless of build typeBrent Cook2023-08-291-0/+7
|
* Move `LibreSSL/` to `LIBRESSL_INSTALL_CMAKEDIR`.Pierre Wendling2023-08-191-3/+3
| | | | | This allows users to install the CMake configs without forcing a `LibreSSL` directory after `LIBRESSL_INSTALL_CMAKEDIR`.
* CMake: Export and install library targets.Pierre Wendling2023-08-191-1/+33
| | | | | | | | The configs can be consumed by setting LibreSSL_DIR to the build directory, or after installation using CMAKE_PREFIX_PATH/LibreSSL_DIR. For compatibility, the EXPORT_NAME of targets and the LIBRESSL_* variables are set to match the names used in FindLibreSSL.
* Land #894, fix to enable ASM support in MinGW buildsBrent Cook2023-08-131-1/+1
|\
| * cmake: fix to use MINGW variable to detect MinGWViktor Szakats2023-08-101-1/+1
| |
* | version is breaking thingsBrent Cook2023-08-131-1/+1
| |
* | set default build type to 'Release'Brent Cook2023-08-131-3/+12
|/