Lines Matching refs:set

51 set(_cmake_args "")
60 set(_cache_var_type)
62 set(_cache_var_type ":${_cache_var_type}")
64 set(_cmake_args "${_cmake_args} -D${_cache_var}${_cache_var_type}=\"${_cache_var_value}\"")
69 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
89 set(_target_flags "")
91 set(_target_flags "${_target_flags} APPLE")
94 set(_target_flags "${_target_flags} UNIX")
97 set(_target_flags "${_target_flags} BSD")
100 set(_target_flags "${_target_flags} WIN32")
103 set(_target_flags "${_target_flags} UWP")
106 set(_target_flags "${_target_flags} CYGWIN")
109 set(_target_flags "${_target_flags} MSYS")
112 set(_target_flags "${_target_flags} DOS")
115 set(_target_flags "${_target_flags} AMIGA")
118 set(_target_flags "${_target_flags} GCC")
121 set(_target_flags "${_target_flags} MINGW")
124 set(_target_flags "${_target_flags} MSVC-${MSVC_VERSION}")
127 set(_target_flags "${_target_flags} VCPKG")
130 set(_target_flags "${_target_flags} CROSS")
141 set(CURL_OS "\"${CMAKE_C_COMPILER_TARGET}\"")
143 set(CURL_OS "\"${CMAKE_SYSTEM_NAME}\"")
149 set(CMAKE_UNITY_BUILD_BATCH_SIZE 0)
152 # Having CMAKE_TRY_COMPILE_TARGET_TYPE set to STATIC_LIBRARY breaks certain
157 message(STATUS "CMAKE_TRY_COMPILE_TARGET_TYPE was found set to STATIC_LIBRARY. "
159 set(_cmake_try_compile_target_type_save ${CMAKE_TRY_COMPILE_TARGET_TYPE})
160 set(CMAKE_TRY_COMPILE_TARGET_TYPE "EXECUTABLE")
175 set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
176 set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MT")
177 set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /MTd")
182 set(ENABLE_UNICODE ON)
193 set(CURL_TARGET_WINDOWS_VERSION "" CACHE STRING "Minimum target Windows version as hex string")
211 set(BUILD_SHARED_LIBS OFF)
212 set(BUILD_STATIC_LIBS ON)
214 set(CMAKE_STATIC_LIBRARY_PREFIX "lib")
215 set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
216 set(CMAKE_FIND_LIBRARY_PREFIXES "lib")
217 set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
229 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE") # Required for sendmmsg()
239set(ENABLE_CURLDEBUG OFF) # FIXME: TrackMemory + MSVC fails test 558 and 1330. Tested with static…
252 set(CMAKE_DEBUG_POSTFIX "-d")
255 set(LIB_STATIC "libcurl_static")
256 set(LIB_SHARED "libcurl_shared")
259 set(BUILD_STATIC_LIBS ON)
262 set(BUILD_STATIC_CURL ON)
264 set(BUILD_STATIC_CURL OFF)
269 set(LIB_SELECTED_FOR_EXE ${LIB_STATIC})
271 set(LIB_SELECTED_FOR_EXE ${LIB_SHARED})
276 set(LIB_SELECTED ${LIB_SHARED})
278 set(LIB_SELECTED ${LIB_STATIC})
283 set(_curl_use_pkgconfig_default ON)
285 set(_curl_use_pkgconfig_default OFF)
290 set(CURL_LIBS "")
291 set(CURL_LIBDIRS "")
292 set(LIBCURL_PC_REQUIRES_PRIVATE "")
295 set(USE_ARES 1)
302 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CARES_CFLAGS}")
404 set(CURL_DISABLE_IPFS ON)
405 set(CURL_DISABLE_RTSP ON)
406 set(CURL_DISABLE_ALTSVC ON)
407 set(CURL_DISABLE_HSTS ON)
415 set(CURL_DISABLE_DICT ON)
416 set(CURL_DISABLE_FILE ON)
417 set(CURL_DISABLE_FTP ON)
418 set(CURL_DISABLE_GOPHER ON)
419 set(CURL_DISABLE_IMAP ON)
420 set(CURL_DISABLE_LDAP ON)
421 set(CURL_DISABLE_LDAPS ON)
422 set(CURL_DISABLE_MQTT ON)
423 set(CURL_DISABLE_POP3 ON)
424 set(CURL_DISABLE_IPFS ON)
425 set(CURL_DISABLE_RTSP ON)
426 set(CURL_DISABLE_SMB ON)
427 set(CURL_DISABLE_SMTP ON)
428 set(CURL_DISABLE_TELNET ON)
429 set(CURL_DISABLE_TFTP ON)
433 set(CURL_DISABLE_TELNET ON) # telnet code needs fixing to compile for UWP.
447 set(ENABLE_IPV6 OFF CACHE BOOL "Enable IPv6 support" FORCE)
451 set(_use_core_foundation_and_core_services ON)
463 set(USE_IPV6 ON)
474 set(HAVE_MANUAL_TOOLS ON)
483 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
514 set(HAVE_EVENTFD 0)
515 set(HAVE_GETPASS_R 0)
516 set(HAVE_SENDMMSG 0)
518 set(HAVE_GETADDRINFO 0) # Breaks the build when detected and used.
523 set(USE_THREADS_WIN32 ON)
526 set(USE_THREADS_POSIX ${CMAKE_USE_PTHREADS_INIT})
527 set(HAVE_PTHREAD_H ${CMAKE_USE_PTHREADS_INIT})
535 set(USE_WATT32 ON)
545 set(USE_AMISSL ON)
548 set(OPENSSL_INCLUDE_DIR "${AMISSL_INCLUDE_DIR}")
549 set(OPENSSL_SSL_LIBRARY "${AMISSL_STUBS_LIBRARY}")
550 set(OPENSSL_CRYPTO_LIBRARY "${AMISSL_AUTO_LIBRARY}")
551 set(CURL_USE_OPENSSL ON)
552 set(CURL_CA_FALLBACK ON CACHE BOOL "")
557 set(CURL_LIBS "socket;${CURL_LIBS}")
569 set(_valid_default_ssl_backend FALSE)
593 set(_openssl_default OFF)
595 set(_openssl_default ON)
601 set(USE_OPENSSL_QUIC OFF)
616 set(CURL_WITH_MULTI_SSL ON)
618 set(CURL_DISABLE_HSTS ON)
622 set(_ssl_enabled ON)
623 set(USE_SCHANNEL ON) # Windows native SSL/TLS support
624 set(USE_WINDOWS_SSPI ON) # CURL_USE_SCHANNEL implies CURL_WINDOWS_SSPI
627 set(_valid_default_ssl_backend TRUE)
631 set(USE_WINDOWS_SSPI ON)
635 set(_use_core_foundation_and_core_services ON)
643 set(_ssl_enabled ON)
644 set(USE_SECTRANSP ON)
648 set(_valid_default_ssl_backend TRUE)
672 set(_ssl_enabled ON)
673 set(USE_OPENSSL ON)
681 set(_valid_default_ssl_backend TRUE)
683 set(_curl_ca_bundle_supported TRUE)
699 set(_openssl "BoringSSL")
701 set(_openssl "AWS-LC")
703 set(_openssl "LibreSSL")
705 set(_openssl "AmiSSL")
707 set(_openssl "OpenSSL")
713 set(_ssl_enabled ON)
714 set(USE_MBEDTLS ON)
721 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MBEDTLS_CFLAGS}")
725 set(_valid_default_ssl_backend TRUE)
727 set(_curl_ca_bundle_supported TRUE)
732 set(_ssl_enabled ON)
733 set(USE_BEARSSL ON)
738 set(_valid_default_ssl_backend TRUE)
740 set(_curl_ca_bundle_supported TRUE)
747 set(_ssl_enabled ON)
748 set(USE_WOLFSSL ON)
755 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WOLFSSL_CFLAGS}")
759 set(_valid_default_ssl_backend TRUE)
761 set(_curl_ca_bundle_supported TRUE)
769 set(GNUTLS_LIBRARIES ${GNUTLS_LINK_LIBRARIES})
776 set(_ssl_enabled ON)
777 set(USE_GNUTLS ON)
784 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NETTLE_CFLAGS}")
788 set(_valid_default_ssl_backend TRUE)
790 set(_curl_ca_bundle_supported TRUE)
803 set(_ssl_enabled ON)
804 set(USE_RUSTLS ON)
811 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${RUSTLS_CFLAGS}")
815 set(_valid_default_ssl_backend TRUE)
817 set(_curl_ca_bundle_supported TRUE)
827 set(HAVE_LIBZ OFF)
830 set(HAVE_LIBZ ON)
837 set(HAVE_BROTLI OFF)
840 set(HAVE_BROTLI ON)
847 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${BROTLI_CFLAGS}")
851 set(HAVE_ZSTD OFF)
855 set(HAVE_ZSTD ON)
862 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ZSTD_CFLAGS}")
952 set(HAVE_ECH 1)
974 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NGHTTP2_CFLAGS}")
977 set(USE_NGHTTP2 OFF)
994 set(_openssl "quictls")
1010 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NGTCP2_CFLAGS}")
1014 set(USE_NGHTTP3 ON)
1021 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NGHTTP3_CFLAGS}")
1041 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${QUICHE_CFLAGS}")
1070 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MSH3_CFLAGS}")
1081 set(USE_NGHTTP3 ON)
1092 set(USE_TLS_SRP 1)
1101 set(HAVE_LDAP_SSL ON)
1115 set(HAVE_LBER_H 1)
1116 set(CURL_LIBS "${LDAP_LIBRARIES};${CURL_LIBS}")
1118 set(LIBCURL_PC_REQUIRES_PRIVATE "${LDAP_PC_REQUIRES};${LIBCURL_PC_REQUIRES_PRIVATE}")
1122 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LDAP_CFLAGS}")
1137 set(USE_OPENLDAP ON)
1141 set(HAVE_LDAP_SSL ON)
1144 message(STATUS "LDAP not found. CURL_DISABLE_LDAP set ON")
1145 set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
1155 set(CURL_DISABLE_LDAPS ON CACHE BOOL "" FORCE)
1165 set(USE_WIN32_IDN OFF)
1178 set(USE_APPLE_IDN OFF)
1182 set(USE_APPLE_IDN OFF)
1187 set(HAVE_IDN2_H OFF)
1188 set(HAVE_LIBIDN2 OFF)
1192 set(CURL_LIBS "${LIBIDN2_LIBRARIES};${CURL_LIBS}")
1194 set(LIBCURL_PC_REQUIRES_PRIVATE "libidn2;${LIBCURL_PC_REQUIRES_PRIVATE}")
1198 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBIDN2_CFLAGS}")
1200 set(HAVE_IDN2_H 1)
1201 set(HAVE_LIBIDN2 1)
1208 set(USE_LIBPSL OFF)
1218 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBPSL_CFLAGS}")
1220 set(USE_LIBPSL ON)
1226 set(USE_LIBSSH2 OFF)
1237 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBSSH2_CFLAGS}")
1239 set(USE_LIBSSH2 ON)
1254 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBSSH_CFLAGS}")
1256 set(USE_LIBSSH ON)
1262 set(USE_WOLFSSH OFF)
1269 set(USE_WOLFSSH ON)
1286 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBGSASL_CFLAGS}")
1288 set(USE_GSASL ON)
1297 set(HAVE_GSSAPI ${GSS_FOUND})
1300 set(HAVE_GSSGNU 1)
1305 set(_include_list "")
1322 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${GSS_CFLAGS}")
1328 set(HAVE_OLD_GSSMIT ON)
1341 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GSS_CFLAGS}")
1361 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBUV_CFLAGS}")
1363 set(USE_LIBUV ON)
1364 set(HAVE_UV_H ON)
1369 set(_extra_libs "rtmp")
1382 set(USE_LIBRTMP OFF)
1389 set(USE_UNIX_SOCKETS ON)
1402 set(CURL_CA_BUNDLE "auto" CACHE
1404 set(CURL_CA_FALLBACK OFF CACHE BOOL
1406 set(CURL_CA_PATH "auto" CACHE
1408 set(CURL_CA_EMBED "" CACHE
1418 set(_curl_ca_bundle_autodetect TRUE)
1421 set(CURL_CA_BUNDLE_SET TRUE)
1432 set(_curl_ca_path_autodetect TRUE)
1435 set(CURL_CA_PATH_SET TRUE)
1440 # Skip auto-detection of unset CA path because CA bundle is set explicitly
1442 # Skip auto-detection of unset CA bundle because CA path is set explicitly
1455 set(CURL_CA_BUNDLE "${_search_ca_bundle_path}" CACHE
1457 set(CURL_CA_BUNDLE_SET TRUE CACHE BOOL "Path to the CA bundle has been set")
1464 set(_search_ca_path "/etc/ssl/certs")
1469 set(CURL_CA_PATH "${_search_ca_path}" CACHE
1471 set(CURL_CA_PATH_SET TRUE CACHE BOOL "Path to the CA bundle has been set")
1476 set(CURL_CA_EMBED_SET FALSE)
1479 set(CURL_CA_EMBED_SET TRUE)
1506 set(HAVE_INET_NTOP 0)
1507 set(HAVE_INET_PTON 0)
1509 set(HAVE_INET_NTOP 1)
1510 set(HAVE_INET_PTON 1)
1580 set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${_variable}")
1594 set(ssize_t "long")
1597 set(ssize_t "__int64")
1603 set(HAVE_LONGLONG 1)
1606 set(HAVE_SUSECONDS_T 1)
1696 set(HAVE_INET_NTOP OFF)
1710 set(HAVE_ADDRESS_FAMILY ${HAVE_SIZEOF_ADDRESS_FAMILY})
1714 set(HAVE_SA_FAMILY_T ${HAVE_SIZEOF_SA_FAMILY_T})
1745 set(_FILE_OFFSET_BITS 64)
1756 set(HAVE_DECL_FSEEKO 1)
1791 set(NEED_REENTRANT 1)
1801 set(${_curl_test} 0)
1803 set(${_curl_test} 1)
1819 set(in_addr_t "unsigned long")
1829 set(_mprintf_compile_flags "${_mprintf_compile_flags} -Wno-long-double")
1831 set(_mprintf_compile_flags "-Wno-long-double")
1839 set(CMAKE_TRY_COMPILE_TARGET_TYPE ${_cmake_try_compile_target_type_save})
1849 set(USE_WIN32_LARGE_FILES ON)
1852 set(CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS} -DCURL_EMBED_MANIFEST")
1856 set(USE_WIN32_CRYPTO ON)
1867 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
1873 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
1878 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
1884 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
1887 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
1916 …string(REGEX REPLACE "([a-zA-Z_][a-zA-Z0-9_]*)[\t ]*=[\t ]*([^\n]*)" "set(\\1 \\2)" _makefile_inc_…
1930 set(_install_cmake_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
1931 set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
1932 set(_generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
1933 set(_project_config "${_generated_dir}/${PROJECT_NAME}Config.cmake")
1934 set(_version_config "${_generated_dir}/${PROJECT_NAME}ConfigVersion.cmake")
1938 set(CURL_BUILD_TESTING ON)
1940 set(CURL_BUILD_TESTING OFF)
1944 set(CURL_MANPAGE "${PROJECT_BINARY_DIR}/docs/cmdline-opts/curl.1")
1945 set(CURL_ASCIIPAGE "${PROJECT_BINARY_DIR}/docs/cmdline-opts/curl.txt")
1969 set(_items ${_items} "${_label}")
1982 set(_use_curl_ntlm_core ON)
1986 set(_items "")
2029 set(_items "")
2081 set(_items "")
2107 # curl-config needs the following options to be set.
2108 set(CC "${CMAKE_C_COMPILER}")
2110 set(CONFIGURE_OPTIONS "")
2111 set(CURLVERSION "${_curl_version}")
2112 set(VERSIONNUM "${_curl_version_num}")
2113 set(prefix "${CMAKE_INSTALL_PREFIX}")
2114 set(exec_prefix "\${prefix}")
2116 set(includedir "${CMAKE_INSTALL_INCLUDEDIR}")
2118 set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
2121 set(libdir "${CMAKE_INSTALL_LIBDIR}")
2123 set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
2128 set(_ldflags "")
2129 set(LIBCURL_PC_LIBS_PRIVATE "")
2135 set(_custom_libs "")
2136 set(_custom_libdirs "")
2153 set(_sys_libdirs "")
2156 set(_libdir "${_libdir}lib")
2158 set(_libdir "${_libdir}/lib")
2164 set(_libdir "${_libdir}/${CMAKE_LIBRARY_ARCHITECTURE}")
2178 set(_implicit_libs "")
2180 set(_implicit_libs ${CMAKE_C_IMPLICIT_LINK_LIBRARIES})
2185 set(_libname "${_lib}")
2229 set(LIBCURL_PC_LDFLAGS_PRIVATE "${_ldflags}")
2232 set(LIBCURL_PC_LDFLAGS_PRIVATE "")
2234 set(LIBCURL_PC_CFLAGS_PRIVATE "-DCURL_STATICLIB")
2238 set(ENABLE_SHARED "yes")
2239 set(LIBCURL_PC_REQUIRES "")
2240 set(LIBCURL_PC_LIBS "")
2241 set(LIBCURL_PC_CFLAGS "")
2243 set(ENABLE_SHARED "no")
2244 set(LIBCURL_PC_REQUIRES "${LIBCURL_PC_REQUIRES_PRIVATE}")
2245 set(LIBCURL_PC_LIBS "${LIBCURL_PC_LIBS_PRIVATE}")
2246 set(LIBCURL_PC_CFLAGS "${LIBCURL_PC_CFLAGS_PRIVATE}")
2249 set(ENABLE_STATIC "yes")
2251 set(ENABLE_STATIC "no")
2325 set(PACKAGE_FIND_VERSION_MAJOR 8)
2326 set(PACKAGE_FIND_VERSION_COUNT 1)
2352 set(_curl_sln_filename "${CMAKE_CURRENT_BINARY_DIR}/CURL.sln")
2377 set(CPACK_GENERATOR "TGZ")
2383 set(_cmake_sysroot ${CMAKE_OSX_SYSROOT})
2385 set(_cmake_sysroot ${CMAKE_SYSROOT})
2387 set(_buildinfo "\