aboutsummaryrefslogtreecommitdiff
path: root/cmake
AgeCommit message (Collapse)AuthorFilesLines
2021-03-25cmake: Fix Ninja multiple rules errorDDoSolitary1-3/+3
Currently "cmake -G Ninja" complains about "multiple rules generate src/libssh_dev.map", because the target has the same name as the output of the custom command. Signed-off-by: DDoSolitary <DDoSolitary@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2021-02-15cmake: Support build directories with special charactersDDoSolitary1-7/+13
Signed-off-by: DDoSolitary <DDoSolitary@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2020-03-30cmake: Update compile flags for UndefinedSanitizerAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-12-20cmake: Add cmake module to find softhsmSahana Prasad1-0/+36
Signed-off-by: Sahana Prasad <sahana@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-07-04cmake: Use GNUInstallDirs for installationAndreas Schneider1-109/+0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2019-01-25cmake: Add support for MemorySanitizerAndreas Schneider1-0/+12
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-09cmake: Link against gpg-errorJakub Jelen1-1/+9
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-02cmake: Always build position independent codeAndreas Schneider1-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-26cmake: Add UndefinedSanitizerAndreas Schneider1-2/+14
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-26cmake: Rewritten AddCMockaTest.cmakeAnderson Toshiyuki Sasaki1-6/+100
This changes add_cmocka_test() to receive compiler options, the libraries to be linked to the test, and the linker options. The way the tests are declared in tests/unittests and tests/client were updated. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-05cmake: Move CompilerFlags to own fileAndreas Schneider2-26/+25
They need to be included before the project() call. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-05cmake: Update defaultsAndreas Schneider1-12/+0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-03cmake: Store Profiling and AddressSanitizer flags in the cacheAndreas Schneider1-8/+20
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-02cmake: Small improvements to AddCMockaTestAndreas Schneider1-15/+17
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-29cmake: Fix SSP compiler flag checkAndreas Schneider1-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-29cmake: Fix target to make sure copy runs in the endAnderson Toshiyuki Sasaki1-17/+30
The target created to copy the file must be the one make dist is depending on. Otherwise it will not copy the generated files to the desired path. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-29cmake: Fix extract_symbols COPY_TOAnderson Toshiyuki Sasaki2-7/+18
Moved the symbols list formatting to the ExtractSymbols.cmake. The resulting list of symbols is sorted and printed in a more readable way (one symbol per line). Fixed the script to copy the generated symbols. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-29cmake: Detect abimap versionAndreas Schneider1-1/+15
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-27cmake: Fix FindABIMap targetsAnderson Toshiyuki Sasaki1-78/+123
Fix the targets and output files handling to make the symbols to be updated correctly when a symbol is added or removed. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-23cmake: Add header to AddCCompilerFlag.cmakeAndreas Schneider1-0/+8
2018-08-22cmake: Disable include_guard as oss-fuzz's cmake version is too oldAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-22cmake: Remove obsolete UseDoxygen.cmakeAndreas Schneider1-140/+0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-22cmake: Remove obsolete DefineCompilerFlags.cmakeAndreas Schneider1-84/+0
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-20cmake: Improve compiler flag detectionAndreas Schneider1-0/+13
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-20cmake: Respect CMAKE_REQUIRED_* variables in CHECK_C_COMPILER_FLAG_SSPAndreas Schneider1-2/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-14cmake: Fix optional ABIMap detectionAndreas Schneider1-11/+24
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
2018-08-13cmake: Improve NSIS detection on WindowsAndreas Schneider1-5/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-08cmake: Introduce symbol versioningAnderson Toshiyuki Sasaki4-0/+659
This adds a cmake module, FindABIMap, which looks for abimap and provides functions to generate a symbol version linker script. The module can be included using find_package(ABIMap). This also adds the option to compile with symbol versioning. The symbol list is obtained from the header files by filtering those marked with the LIBSSH_API modifier. Such symbols are used as input to generate the version script used by the linker. The version script is automatically updated as new symbols marked with LIBSSH_API are added to the header files. If any symbol is removed, the build will fail due to break in the ABI. Symbol versioning is enabled by default if abimap has been found. It is disabled in non-UNIX platforms. It can be disabled by passing "-DWITH_SYMBOL_VERSIONING=OFF" option to cmake. Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org> Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-30gitlab-ci: Add 32bit build on openSUSEAndreas Schneider1-0/+23
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27gitlab: Use wine to run tests built for WindowsAnderson Toshiyuki Sasaki1-1/+9
When building in a cross-compiling environment, use wine to run the tests. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27cmake: Added executable exension on test binariesAnderson Toshiyuki Sasaki1-1/+1
This is necessary when building the tests for Windows. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-04-10cmake: Fix libfuzzer linking with clang6Andreas Schneider1-32/+0
This is always available using -fsanitize=fuzzer now. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-02-04cmake: Build ssh_server_fuzzer if enabledAndreas Schneider1-0/+32
Fixes T67 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-12-28add mbedtls crypto supportJuraj Vijtiuk1-0/+104
Summary: This patch adds support for mbedTLS as a crypto backend for libssh. mbedTLS is an SSL/TLS library that has been designed to mainly be used in embedded systems. It is loosely coupled and has a low memory footprint. mbedTLS also provides a cryptography library (libmbedcrypto) that can be used without the TLS modules. The patch is unfortunately quite big, since several new files had to be added. DSA is disabled at compile time, since mbedTLS doesn't support DSA Patch review and feedback would be appreciated, and if any issues or suggestions appear, I'm willing to work on them. Signed-off-by: Juraj Vijtiuk <juraj.vijtiuk@sartura.hr> Test Plan: * The patch has been tested with a Debug and MinSizeRel build, with libssh unit tests, client tests and the pkd tests. * All the tests have been run with valgrind's memcheck, drd and helgrind tools. * The examples/samplessh client works when built with the patch. Reviewers: asn, aris Subscribers: simonsj Differential Revision: https://bugs.libssh.org/D1
2017-10-12cmake: Fix parsing the gcrypt versionAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2017-04-11cmake: Fix GCRYPT_ROOT_DIR and check correct pathsAndreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-17cmake: Try to fix FindArgp moduleAndreas Schneider1-43/+49
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2016-03-14cmake: detect MIT gssapi shim on osxAris Adamantiadis1-1/+2
2015-05-04cmake: Add support for Address SanitizerAndreas Schneider1-0/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-04-10cmake: Require cmake version 2.8.0Andreas Schneider2-328/+0
2014-04-10cmake: Fix doxygen.Andreas Schneider1-5/+1
2014-04-09cmake: Update doxygen module.Andreas Schneider1-67/+111
2014-04-04cmake: Enable creation of the compile command database by default.Andreas Schneider1-0/+3
2014-02-02build: remove OSX deprecated warnings for opensslAris Adamantiadis1-0/+7
2014-01-07src: Update my mail address.Andreas Schneider4-4/+4
2014-01-07cmake: Remove unused macro modules.Andreas Schneider4-104/+0
2013-11-03Fix examples compilation on OSX (libargp)Aris Adamantiadis1-0/+4
2013-11-03Compile libssh with nacl if possibleAris Adamantiadis1-0/+61
Conflicts: DefineOptions.cmake
2013-08-01cmake: Add CMOCKA_ROOT_DIR with hints and paths.Andreas Schneider1-1/+18
2013-07-25doc: Don't generate latex documentation.Andreas Schneider1-21/+21