summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* CMake: restore support for SecureTransport on iOSRicardo Martins2021-10-251-18/+26
| | | | | | Restore support for building curl for iOS with SecureTransport enabled. Closes #7501
* cmake: add CURL_ENABLE_SSL option and make CMAKE_USE_* SSL backend options ↵Ryan Mast2021-10-141-7/+8
| | | | | | depend on it Closes https://github.com/curl/curl/pull/7822
* CMake: remove `HAVE_WINSOCK_H` definitionMarcel Raad2021-09-291-1/+0
| | | | | | It's not used anymore. Closes https://github.com/curl/curl/pull/7795
* Revert "build: remove checks for WinSock 1"Daniel Stenberg2021-09-291-0/+1
| | | | | | | | Due to CI issues This reverts commit c2ea04f92b00b6271627cb218647527b5a50f2fc. Closes #7790
* build: remove checks for WinSock 1Marcel Raad2021-09-281-1/+0
| | | | | | It's not supported anymore. Closes https://github.com/curl/curl/pull/7778
* cmake: with OpenSSL, define OPENSSL_SUPPRESS_DEPRECATEDDaniel Stenberg2021-09-231-0/+2
| | | | | | | | To avoid the "... is deprecated" warnings brought by OpenSSL v3. (We need to address the underlying code at some point of course.) Assisted-by: Jakub Zakrzewski Closes #7767
* cmake: sync CURL_DISABLE optionsDon2021-08-251-40/+61
| | | | | | | | | | | | Adds the full listing of CURL_DISABLE options to the CMake build. Moves all option code, except for CURL_DISABLE_OPENSSL_AUTO_LOA_CONFIG which resides near OpenSSL configuration, to the same block of code. Also sorts the options here and in the cmake config header. Additionally sorted the CURL-DISABLE listing and fixed the CURL_DISABLE_POP3 option. Closes #7624
* curl_setup.h: sync values for HTTP_ONLYDon2021-08-211-0/+1
| | | | | | | | The values for HTTP_ONLY differed between CMakeLists.txt and curl_setup.h. Sync them and sort the values in curl_setup.h to make it easier to spot differences. Closes #7601
* cmake: remove libssh2 feature checksAndrea Pappacoda2021-07-051-9/+0
| | | | | | | libssh2 features are detected based on version since commit 9dbbba997608f7c3c5de1c627c77c8cd2aa85b73 Closes #7343
* cmake: fix support for UnixSockets feature on Win32Li Xinwei2021-06-211-1/+5
| | | | | | | | | | | | | Move the definition of sockaddr_un struct from config-win32.h to curl_setup.h, so that it could be shared by all build systems. Add ADDRESS_FAMILY typedef for old mingw, now old mingw can also use unix sockets. Also fix the build of tests/server/sws.c on Win32 when USE_UNIX_SOCKETS is defined. Closes #7034
* hostip: (macOS) free returned memory of SCDynamicStoreCopyProxiesGregory Muchka2021-06-211-13/+14
| | | | | | | | | | | | | | From Apples documentation on SCDynamicStoreCopyProxies, "Return Value: A dictionary of key-value pairs that represent the current internet proxy settings, or NULL if no proxy settings have been defined or if an error occurred. You must release the returned value." Failure to release the returned value of SCDynamicStoreCopyProxies can result in a memory leak. Source: https://developer.apple.com/documentation/systemconfiguration/1517088-scdynamicstorecopyproxies Closes #7265
* configure/cmake: remove checks for unused gethostbyaddr and gethostbyaddr_rGergely Nagy2021-06-181-14/+0
| | | | Closes #7276
* configure/cmake: remove checks for unused inet_ntoa and inet_ntoa_rGergely Nagy2021-06-181-11/+1
| | | | Closes #7276
* configure/cmake: remove unused define HAVE_PERRORGergely Nagy2021-06-181-1/+0
| | | | Closes #7276
* configure/cmake: remove unused define HAVE_FREEIFADDRSGergely Nagy2021-06-181-1/+0
| | | | Closes #7276
* configure/cmake: remove unused define HAVE_FORKGergely Nagy2021-06-181-1/+0
| | | | Closes #7276
* configure/cmake: remove checks for unused sgtty.hGergely Nagy2021-06-181-1/+0
| | | | Closes #7276
* configure/cmake: remove remaining checks for rsa.hGergely Nagy2021-06-181-1/+0
| | | | Closes #7276
* configure/cmake: remove remaining checks for err.hGergely Nagy2021-06-181-1/+0
| | | | Closes #7276
* configure/cmake: remove remaining checks for crypto.hGergely Nagy2021-06-181-1/+0
| | | | Closes #7276
* cmake: Avoid leaking absolute paths into exported configGregor Jasny2021-06-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The `find_libarary` command resolves the library or framework into an absolute path. In case of system frameworks which are located within an Xcode-provided SDK this results in the Xcode path and SDK version being part of the library path. Because those library paths end up in the exported CMake config importing curl will fail once the Xcode location or SDK version changes: ```cmake set_target_properties(CURL::libcurl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" INTERFACE_LINK_LIBRARIES "lber;ldap;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/SystemConfiguration.framework;OpenSSL::SSL;OpenSSL::Crypto;ZLIB::ZLIB" ) ``` A work-around is to link against system-level frameworks with `-framework XYZ`. In case of `SystemConfiguration` we might be able to omit the lookup-check because we could assume the framework is always present. Closes #7152
* cmake: add CURL_DISABLE_NTLM optiontheawless2021-06-021-4/+6
| | | | Closes #7028
* lib/hostip6.c: make NAT64 address synthesis on macOS workRadek Zajic2021-05-251-0/+8
| | | | Closes #7121
* CMake: add CURL_ENABLE_EXPORT_TARGET optionPaweł Wegner2021-05-251-5/+10
| | | | | | | | | install(EXPORT ...) causes trouble when embedding curl dependencies which don't provide install(EXPORT ...) targets (e.g libressl and nghttp2) with cmake's add_subdirectory. Reviewed-by: Jakub Zakrzewski Closes #7060
* cmake: Use multithreaded compilation on VS 2008+Matias N. Goldberg2021-05-211-0/+5
| | | | | | | Multithreaded compilation has been supported since at least VS 2005 and been robustly stable since at least VS 2008 Closes https://github.com/curl/curl/pull/7109
* cmake: fix two invokes result in different curl_config.hMatias N. Goldberg2021-05-211-2/+4
| | | | | | | | Fixes #7100 Closes #7101 Reviewed-by: Jakub Zakrzewski Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
* cmake: detect CURL_SA_FAMILY_TPeng-Yu Chen2021-05-211-0/+10
| | | | | Fixes #7049 Closes #7065
* cmake: check for getppid and utimesDaniel Stenberg2021-05-041-3/+3
| | | | | | | | | | | | | ... as they're checked for in the configure script and are used by source code. Removed checks for perror, setvbuf and strlcat since those defines are not checked for in source code. Bonus: removed HAVE_STRLCPY from a few config-*.h files since that symbol is not used in source code. Closes #6997
* hsts: enable by defaultDaniel Stenberg2021-04-191-0/+3
| | | | | | No longer considered experimental. Closes #6700
* configure: remove use of RETSIGTYPEMichael Forney2021-04-071-7/+0
| | | | | | | | | | | This was previously defined by the obsolete AC_TYPE_SIGNAL macro, which was removed in 2682e5f5. The deprecation text says > Your code may safely assume C89 semantics that RETSIGTYPE is void. So, remove it and just use void instead. Closes #6861
* cmake: support WinIDNLi Xinwei2021-03-291-1/+9
| | | | Closes #6807
* config: fix SSPI enabling NTLM if crypto auth is disabledMarc Hoersken2021-03-291-2/+4
| | | | | | | | | | | Avoid enabling NTLM feature based upon Windows SSPI being enabled in case that crypto auth is disabled. Reported-by: Marcel Raad Follow-up to #6277 Fixes #6803 Closes #6808
* config: fix building SMB with configure using Win32 CryptoMarc Hoersken2021-03-151-22/+29
| | | | | | | | | | | | | | | | | | | Align conditions for NTLM features between CMake and configure builds by differentiating between USE_NTLM and USE_CURL_NTLM_CORE, just like curl_setup.h does internally to detect support of: - USE_NTLM: required for NTLM crypto authentication feature - USE_CURL_NTLM_CORE: required for SMB protocol Implement USE_WIN32_CRYPTO detection by checking for Crypt functions in wincrypt.h which are not available in the Windows App environment. Link advapi32 and crypt32 for Crypto API and Schannel SSL backend. Fix condition of Schannel SSL backend in CMake build accordingly. Reviewed-by: Marcel Raad Closes #6277
* config: remove CURL_SIZEOF_CURL_OFF_T use only SIZEOF_CURL_OFF_TDaniel Stenberg2021-03-111-1/+1
| | | | | | | Make the code consistently use a single name for the size of the "curl_off_t" type. Closes #6702
* build: delete unused feature guardsViktor Szakats2021-02-231-2/+0
| | | | | | | | | | - `HAVE_STRNCASECMP` - `HAVE_TCGETATTR` - `HAVE_TCSETATTR` Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #6645
* copyright: fix missing year (range) updatesDaniel Stenberg2021-01-291-1/+1
|
* cmake: expose CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIGRazvan Cojocaru2021-01-161-0/+1
| | | | | | | This does for cmake builds what --disable-openssl-auto-load-config does for autoconf builds. Closes https://github.com/curl/curl/pull/6435
* cmake: Add an option to disable libidn2Jay Satiro2021-01-081-1/+5
| | | | | | | | | | New option USE_LIBIDN2 defaults to ON for libidn2 detection. Prior to this change libidn2 detection could not be turned off in cmake builds. Reported-by: William A Rowe Jr Fixes https://github.com/curl/curl/issues/6361 Closes https://github.com/curl/curl/pull/6362
* cmake: enable gophers correctly in curl-configDaniel Stenberg2020-12-171-0/+1
| | | | Closes #6336
* cmake: check for linux/tcp.hKlaus Crusius2020-12-011-0/+1
| | | | | | The HAVE_LINUX_TCP_H define was not set by cmake. Closes #6252
* cmake: make CURL_ZLIB a tri-state variableCristian Morales Vega2020-11-191-18/+15
| | | | | | | | | By differentiating between ON and AUTO it can make a missing zlib library a hard error when CURL_ZLIB=ON is used. Reviewed-by: Jakub Zakrzewski Closes #6221 Fixes #6173
* cmake: correctly handle linker flags for static libsTobias Hieta2020-11-101-0/+1
| | | | | | | | | | | | | curl CMake was setting the the EXE flags for static libraries which made the /manifest:no flag ended up when linking the static library, which is not a valid flag for lib.exe or llvm-lib.exe and caused llvm-lib to exit with an error. The better way to handle this is to make sure that we pass the correct linker flags to CMAKE_STATIC_LINKER_FLAGS instead. Reviewed-by: Jakub Zakrzewski Closes #6195
* curl.se: new homeDaniel Stenberg2020-11-041-2/+2
| | | | Closes #6172
* CMake: make BUILD_TESTING dependent optionSergei Nikulov2020-10-291-4/+4
| | | | | | | | CMake will now handle BUILD_TESTING depending on PERL_FOUND and CURL_DISABLE_TESTING Ref: #6036 Closes #6072
* alt-svc: enable by defaultDaniel Stenberg2020-10-251-4/+3
| | | | | | | | Remove CURLALTSVC_IMMEDIATELY, which was never implemented/supported. alt-svc support in curl is no longer considered experimental Closes #5868
* cmake: set the unicode feature in curl-config on WindowsDaniel Stenberg2020-10-221-0/+1
| | | | | | | ... if built that way. To make it match curl -V output. Reviewed-by: Marcel Raad Closes #6117
* CMake: call the feature unixsockets without dashDaniel Stenberg2020-10-201-1/+1
| | | | | | | ... so that curl-config gets correct and makes test 1014 happy! Ref: #6074 Closes #6108
* cmake: remove scary warningDaniel Stenberg2020-09-211-2/+0
| | | | | | | | | | | Remove the text saying "the curl cmake build system is poorly maintained. Be aware" ... not because anything changed just now, but to encourage users to use it and subsequently improve it. Closes #5984
* cmake: make HTTP_ONLY also disable MQTTDaniel Stenberg2020-09-071-7/+8
| | | | | | | ... and alphasort the order of disabling protocols to make it easier to browse. Closes #5931
* CMake: remove explicit `CMAKE_ANSI_CFLAGS`Samuel Marks2020-09-041-4/+0
| | | | | | | | | | This variable was removed from cmake in commit https://gitlab.kitware.com/cmake/cmake/commit/5a834b0bb0bc288. A later CMake commit removes the variable from the tests, claiming that it was removed in CMake 2.6 Reviewed-By: Peter Wu Closes #5439