1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00
Commit Graph

31 Commits

Author SHA1 Message Date
64ef3fefb4 Rework the coverage build
This reworks it to avoid a need to special build type and adding the flags only
to the targets that need it (skipping testing wrappers which break with them).

It also updates the CodeCoverage module from the following URL:

https://github.com/bilke/cmake-modules/blob/master/CodeCoverage.cmake

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2024-03-08 13:34:23 +01:00
25a678190c Implement code coverage collection
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2022-08-25 14:53:58 +02:00
b2c7fce968 cmake: Update compile flags for UndefinedSanitizer
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2020-03-30 09:46:18 +02:00
d41fd0c465 cmake: Add support for MemorySanitizer
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2019-01-25 16:07:50 +01:00
e57f0273a6 cmake: Add UndefinedSanitizer
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-26 16:54:31 +02:00
91800eb243 cmake: Move CompilerFlags to own file
They need to be included before the project() call.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-05 15:28:29 +02:00
9820a35a9e cmake: Remove obsolete DefineCompilerFlags.cmake
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-22 08:54:59 +02:00
31fb4e1e69 build: remove OSX deprecated warnings for openssl 2014-02-02 21:41:32 +01:00
26c118890f cmake: Only build with _FORTIFY_SOURCE on release builds. 2013-07-25 10:02:01 +02:00
97e7c95d21 cmake: Pass _FORTIFY_SOURCE directly to the preprocessor. 2013-07-13 13:54:00 +02:00
afe4c92bbf cmake: Fix setting -D_FORTIFY_SOURCE=2. 2013-02-07 17:02:51 +01:00
915781381e BUG 99: Fix string function if no build type is set. 2013-01-22 16:28:25 +01:00
fb3f649c76 cmake: Only set -D_FORTIFY_SOURCE=2 if we have optimizations. 2012-12-25 17:35:07 +01:00
f2e498c7db cmake: Set GNU compiler flags also for clang. 2012-10-22 16:05:39 +02:00
ca47c9b46e cmake: Make CHECK_C_COMPILER_FLAG_SSP a function. 2011-07-29 11:37:52 +02:00
2b6fa19fe5 cmake: Fixed msvc posix warnings and unsecure functions. 2011-01-02 19:35:53 +01:00
9f02a817ff build: Added -pedantic-errors. 2010-09-10 21:46:36 +02:00
254a08f540 build: Cleanup DefineCompilerFlags. 2010-09-08 11:20:10 +02:00
cbd0a8f4b5 Change the test file for stackprotector for clang
Now compiles with clang !
2010-04-28 18:01:15 +02:00
492d1f24c8 Set CFLAGS correctly. 2010-02-13 12:47:28 +01:00
e78334688f Fixed setting of LFS CFLAGS. 2009-10-02 20:19:48 +02:00
566fda70a5 Fixed LFS support on unix. 2009-10-02 20:17:21 +02:00
8ed9cdce80 Remove --as-needed linker flag. 2009-10-01 10:19:07 +02:00
16870abed7 Add more warnings to gcc. 2009-09-01 11:03:48 +02:00
b8508020e5 Link shared libraries with --as-needed by default. 2009-08-25 15:06:56 +02:00
a1ad0deb32 Set gcc to c99 standard and enable pedantic. 2009-08-25 13:58:30 +02:00
011ab7c8fe Suppress warning about "deprecated" functions in MSVC. 2009-08-11 15:36:37 +02:00
ef2c8d66f1 Add compile flags and test for compiler options only if we use gcc. 2009-07-21 11:14:54 +02:00
1a6038baa5 Only add additional warnings if we have a GNU compiler. 2009-07-21 11:10:09 +02:00
910689126a Fix cmake on BSD.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@773 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-09 10:54:48 +00:00
460d0b402b Add Makefiles for the CMake build system.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@203 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-02-02 14:44:46 +00:00