summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Respect BUILD_SHARED_LIBSRuslan Baratov2018-08-081-5/+9
| | | | | | | | | | Use standard CMake variable BUILD_SHARED_LIBS instead of introducing custom option CURL_STATICLIB. Use '-DBUILD_SHARED_LIBS=%SHARED%' in appveyor.yml. Reviewed-by: Sergei Nikulov Closes #2755
* cmake: bumped minimum version to 3.4John Butterfield2018-08-081-1/+1
| | | | Closes #2753
* cmake: link curl to the OpenSSL targets instead of lib absolute pathsJohn Butterfield2018-08-081-4/+4
| | | | | | Reviewed-by: Jakub Zakrzewski Reviewed-by: Sergei Nikulov Closes #2753
* CMake: Update scripts to use consistent styleRuslan Baratov2018-07-171-69/+66
| | | | | Closes #2727 Reviewed-by: Sergei Nikulov
* CMake: remove redundant and old end-of-block syntaxRuslan Baratov2018-07-091-53/+49
| | | | | Reviewed-by: Jakub Zakrzewski Closes #2715
* CMake: Remove unused 'output_var' from 'collect_true'Ruslan Baratov2018-07-061-2/+2
| | | | | Variable 'output_var' is not used and can be removed. Function 'collect_true' renamed to 'count_true'.
* cmake: allow multiple SSL backendsRaphael Gozzo2018-06-211-1/+1
| | | | | | | This will make possible to select the SSL backend (using curl_global_sslset()) even when the libcurl is built using CMake Closes #2665
* openssl: assume engine support in 1.0.1 or laterDaniel Stenberg2018-06-111-1/+0
| | | | | | | | | | | | Previously it was checked for in configure/cmake, but that would then leave other build systems built without engine support. While engine support probably existed prior to 1.0.1, I decided to play safe. If someone experience a problem with this, we can widen the version check. Fixes #2641 Closes #2644
* curl.rc: embed manifest for correct Windows version detectionViktor Szakats2018-05-301-1/+7
| | | | | | | | | | | | | | | | | | | | | | | * enable it in `src/Makefile.m32` * enable it in `winbuild/MakefileBuild.vc` if a custom manifest is _not_ enabled via the existing `EMBED_MANIFEST` option * enable it for all Windows CMake builds (also disable the built-in minimal manifest, added by CMake by default.) For other build systems, add the `-DCURL_EMBED_MANIFEST` option to the list of RC (Resource Compiler) flags to enable the manifest included in `src/curl.rc`. This may require to disable whatever automatic or other means in which way another manifest is added to `curl.exe`. Notice that Borland C doesn't support this method due to a long-pending resource compiler bug. Watcom C may also not handle it correctly when the `-zm` `wrc` option is used (this option may be unnecessary though) and regardless of options in certain earlier revisions of the 2.0 beta version. Closes https://github.com/curl/curl/pull/1221 Fixes https://github.com/curl/curl/issues/2591
* cmake: check for getpwuid_rBernhard Walle2018-05-281-0/+1
| | | | | | | The autotools-based build system does it, so we do it also in CMake. Bug: #2609 Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
* Fix the test for fsetxattr and strerror_r tests in CMake to work without ↵maxed2018-05-281-2/+2
| | | | compiling
* cmake: set -d postfix for debug builds if not specifiedSergei Nikulov2018-05-241-1/+3
| | | | | | using -DCMAKE_DEBUG_POSTFIX explicitly fixes #2121, obsoletes #2384
* cmake: Add advapi32 as explicit link library for win32Michał Janiszewski2018-03-271-0/+1
| | | | | ARM targets need advapi32 explicitly. Closes #2363
* cmake: avoid warn-as-error during config checks (#2411)Sergei Nikulov2018-03-221-11/+10
| | | | | | - Move the CURL_WERROR option processing after the configuration checks to avoid failures in case of warnings during the configuration checks. This is a partial fix for #2358
* cmake: add support for brotliDon2018-03-191-0/+12
| | | | | | | | Currently CMake cannot detect Brotli support. This adds detection of the libraries and associated header files. It also adds this to the generated config. Closes #2392
* build: remove HAVE_LIMITS_H checkJay Satiro2018-01-051-1/+0
| | | | | | | | .. because limits.h presence isn't optional, it's required by C89. Ref: http://port70.net/~nsz/c/c89/c89-draft.html#2.2.4.2 Closes https://github.com/curl/curl/pull/2215
* cmake: Add missing setmode checkJohn Starks2017-11-101-0/+1
| | | | | | | Ensure HAVE_SETMODE is set to 1 on OSes that have setmode. Without this, curl will corrupt binary files when writing them to stdout on Windows. Closes https://github.com/curl/curl/pull/2067
* timeval: use mach time on MacOSDmitri Tikhonov2017-10-301-0/+1
| | | | | | If clock_gettime() is not supported, use mach_absolute_time() on MacOS. closes #2033
* cmake: Export libcurl and curl targets to use by other cmake projectsJakub Zakrzewski2017-10-281-1/+26
| | | | | | | | | The config files define curl and libcurl targets as imported targets CURL::curl and CURL::libcurl. For backward compatibility with CMake- provided find-module the CURL_INCLUDE_DIRS and CURL_LIBRARIES are also set. Closes #1879
* openssl: enable PKCS12 support for !BoringSSLDaniel Stenberg2017-10-091-1/+0
| | | | | | | | | Enable PKCS12 for all non-boringssl builds without relying on configure or cmake checks. Bug: https://curl.haxx.se/mail/lib-2017-10/0007.html Reported-by: Christian Schmitz Closes #1948
* cmake: disable tests and man generation if perl/nroff not foundSergei Nikulov2017-10-021-31/+17
| | | | | | | | | | | | Fixes https://github.com/curl/curl/issues/1500 Reported-by: Jay Satiro Fixes https://github.com/curl/curl/pull/1662 Assisted-by: Tom Seddon Assisted-by: dpull@users.noreply.github.com Assisted-by: elelel@users.noreply.github.com Closes https://github.com/curl/curl/pull/1924
* cmake: enable picky compiler options with clang and gccDaniel Stenberg2017-08-201-0/+15
| | | | closes #1799
* cmake: sizeof curl_off_t, remove unused detectionsDaniel Stenberg2017-08-171-44/+7
|
* cmake: remove dead code for DISABLED_THREADSAFEBenbuck Nason2017-08-151-2/+0
| | | | Closes #1786
* cmake: Threads detection update. ref: #1702Sergei Nikulov2017-08-131-20/+9
| | | | Closes #1719
* cmake: allow user to override CMAKE_DEBUG_POSTFIXSimon Warta2017-08-121-1/+1
| | | | Closes #1763
* cmake: move cmake_uninstall.cmake to CMake/Daniel Stenberg2017-08-101-3/+3
| | | | Closes #1756
* CMake: fix CURL_WERROR for MSVCMarcel Raad2017-08-041-1/+1
| | | | | | | When using CURL_WERROR in MSVC builds, the debug flags were overridden by the release flags and /WX got added twice in debug mode. Closes https://github.com/curl/curl/pull/1715
* CMake: set MSVC warning level to 4Marcel Raad2017-08-031-0/+5
| | | | | | | | | | | The MSVC warning level defaults to 3 in CMake. Change it to 4, which is consistent with the Visual Studio and NMake builds. Disable level 4 warning C4127 for the library and additionally C4306 for the test servers to get a clean CURL_WERROR build as that warning is raised in some macros in older Visual Studio versions. Ref: https://github.com/curl/curl/pull/1667#issuecomment-314082794 Closes https://github.com/curl/curl/pull/1711
* cmake: support make uninstalljasjuang2017-07-301-0/+11
| | | | Closes #1674
* cmake: offer CMAKE_DEBUG_POSTFIX when building with MSVCPaul Harris2017-07-071-5/+3
| | | | | | Removes BUILD_RELEASE_DEBUG_DIRS since it wasn't used anywhere. Closes #1649
* cmake: add CURL_WERROR for enabling "warning as errors"Daniel Stenberg2017-07-061-0/+11
|
* cmake: remove spurious "-l" from linker flagsHannes Magnusson2017-07-061-1/+1
| | | | Fixes #1552
* cmake: if inet_pton is used, bump _WIN32_WINNTDaniel Stenberg2017-07-051-7/+11
| | | | | | | ... and make sure inet_pton is always checked for when *not* using Windows, which is a regression from 4fc6ebe18. Idea-by: Sergei Nikulov
* cmake: Added compatibility options for older Windows versionsPer Malmberg2017-07-021-1/+11
| | | | | | CURL_STATIC_CRT and ENABLE_INET_PTON Closes #1621
* includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg2017-06-141-10/+4
| | | | | | | | Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
* cmake: Fix inconsistency regarding mbed TLS include directoryTheAssassin2017-06-081-3/+3
| | | | | | | | | Previously, one had to set MBEDTLS_INCLUDE_DIR to make CMake find the headers, but the system complained that mbed TLS wasn't found due to MBEDTLS_INCLUDE_DIRS (note the trailing s) was not set. This commit attempts to fix that. Closes https://github.com/curl/curl/pull/1541
* cmake: fix build on Ubuntu 14.04Akhil Kedia2017-05-231-2/+2
| | | | | | | | | | | Fixed a syntax error with setting cache variables (The type and docstring were missing), resulting in build errors. Quoted the CURL_CA_PATH and CURL_CA_BUNDLE otherwise the path was written without quotes in C code, resulting in build errors. Closes #1503 Signed-off-by: Akhil <akhil.kedia@samsung.com>
* cmake: remove unused variables: GNUTLS_ENABLED, NSS_ENABLEDSimon Warta2017-05-211-3/+2
|
* cmake: remove CURL_CA_BUNDLE from cmake TODOSimon Warta2017-05-211-2/+0
|
* cmake: auto detection of CURL_CA_BUNDLE/CURL_CA_PATHSimon Warta2017-05-211-10/+53
| | | | Closes #1461
* cmake: add CURL_CA_BUNDLE/CURL_CA_FALLBACK/CURL_CA_PATH optionsSimon Warta2017-05-211-0/+29
|
* cmake: build manual pages (including curl.1)Peter Wu2017-03-211-0/+3
| | | | | | | | | | | Also make Perl mandatory to allow building the docs. While CMakeLists.txt could probably read the list of manual pages from Makefile.am, actually putting those in CMakeLists.txt is cleaner so that is what is done here. Fixes #1230 Ref: https://github.com/curl/curl/pull/1288
* CMake: Set at most one SSL libraryMichael Maltese2017-03-051-6/+16
| | | | Ref: https://github.com/curl/curl/pull/1228
* CMake: Add mbedTLS supportMichael Maltese2017-03-051-1/+11
| | | | Ref: https://github.com/curl/curl/pull/1228
* CMake: Add DarwinSSL supportMichael Maltese2017-03-051-4/+8
| | | | | Assisted-by: Simon Warta <simon@kullo.net> Ref: https://github.com/curl/curl/pull/1228
* CMake: Reorganize SSL support, separate WinSSL and SSPIMichael Maltese2017-03-051-57/+59
| | | | | | This is closer to how configure.ac does it Ref: https://github.com/curl/curl/pull/1228
* cmake: Replace invalid UTF-8 byte sequenceSimon Warta2017-02-251-2/+2
| | | | | | | | | | | - Change the encoding of the regex temp placeholder token to UTF-8. Prior to this change the file contained special chars in a different encoding than ASCII or UTF-8 making text editors and Python complain when reading the file. Closes https://github.com/curl/curl/pull/1271 Closes https://github.com/curl/curl/pull/1275
* cmake: Support curl --xattr when built with cmakeSean Burford2017-02-011-0/+8
| | | | | | | - Test for and set HAVE_FSETXATTR when support for extended file attributes is present. Closes https://github.com/curl/curl/pull/1176
* cmake: Fix passing _WINSOCKAPI_ macro to compilerJiri Malak2017-01-091-1/+1
| | | | | | | Define _WINSOCKAPI_ blank rather than to 1 in order to match the value used by Microsoft's winsock header files. Closes https://github.com/curl/curl/pull/1195