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}\"")
78 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
100 set(_target_flags "${_target_flags} APPLE")
103 set(_target_flags "${_target_flags} UNIX")
106 set(_target_flags "${_target_flags} BSD")
109 set(_target_flags "${_target_flags} WIN32")
112 set(_target_flags "${_target_flags} CYGWIN")
115 set(_target_flags "${_target_flags} MSYS")
118 set(_target_flags "${_target_flags} GCC")
121 set(_target_flags "${_target_flags} MINGW")
124 set(_target_flags "${_target_flags} MSVC")
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")
190 set(CURL_TARGET_WINDOWS_VERSION "" CACHE STRING "Minimum target Windows version as hex string")
217 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE") # Required for sendmmsg()
227 …set(ENABLE_CURLDEBUG OFF) # FIXME: TrackMemory + MSVC fails test 558 and 1330. Tested with static…
240 set(CMAKE_DEBUG_POSTFIX "-d")
243 set(LIB_STATIC "libcurl_static")
244 set(LIB_SHARED "libcurl_shared")
247 set(BUILD_STATIC_LIBS ON)
250 set(BUILD_STATIC_CURL ON)
252 set(BUILD_STATIC_CURL OFF)
257 set(LIB_SELECTED_FOR_EXE ${LIB_STATIC})
259 set(LIB_SELECTED_FOR_EXE ${LIB_SHARED})
264 set(LIB_SELECTED ${LIB_SHARED})
266 set(LIB_SELECTED ${LIB_STATIC})
271 set(_curl_use_pkgconfig_default ON)
273 set(_curl_use_pkgconfig_default OFF)
278 set(CURL_LIBS "")
279 set(CURL_LIBDIRS "")
280 set(LIBCURL_PC_REQUIRES_PRIVATE "")
283 set(USE_ARES 1)
387 set(CURL_DISABLE_IPFS ON)
388 set(CURL_DISABLE_RTSP ON)
389 set(CURL_DISABLE_ALTSVC ON)
390 set(CURL_DISABLE_HSTS ON)
398 set(CURL_DISABLE_DICT ON)
399 set(CURL_DISABLE_FILE ON)
400 set(CURL_DISABLE_FTP ON)
401 set(CURL_DISABLE_GOPHER ON)
402 set(CURL_DISABLE_IMAP ON)
403 set(CURL_DISABLE_LDAP ON)
404 set(CURL_DISABLE_LDAPS ON)
405 set(CURL_DISABLE_MQTT ON)
406 set(CURL_DISABLE_POP3 ON)
407 set(CURL_DISABLE_IPFS ON)
408 set(CURL_DISABLE_RTSP ON)
409 set(CURL_DISABLE_SMB ON)
410 set(CURL_DISABLE_SMTP ON)
411 set(CURL_DISABLE_TELNET ON)
412 set(CURL_DISABLE_TFTP ON)
416 set(CURL_DISABLE_TELNET ON) # telnet code needs fixing to compile for UWP.
428 set(ENABLE_IPV6 OFF CACHE BOOL "Enable IPv6 support" FORCE)
432 set(_use_core_foundation_and_core_services ON)
444 set(USE_IPV6 ON)
455 set(HAVE_MANUAL_TOOLS ON)
464 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
492 set(HAVE_EVENTFD 0)
493 set(HAVE_GETPASS_R 0)
494 set(HAVE_SENDMMSG 0)
499 set(USE_THREADS_WIN32 ON)
502 set(USE_THREADS_POSIX ${CMAKE_USE_PTHREADS_INIT})
503 set(HAVE_PTHREAD_H ${CMAKE_USE_PTHREADS_INIT})
512 set(CURL_LIBS "socket;${CURL_LIBS}")
526 set(_valid_default_ssl_backend FALSE)
550 set(_openssl_default OFF)
552 set(_openssl_default ON)
558 set(USE_OPENSSL_QUIC OFF)
573 set(CURL_WITH_MULTI_SSL ON)
575 set(CURL_DISABLE_HSTS ON)
579 set(_ssl_enabled ON)
580 set(USE_SCHANNEL ON) # Windows native SSL/TLS support
581 set(USE_WINDOWS_SSPI ON) # CURL_USE_SCHANNEL implies CURL_WINDOWS_SSPI
584 set(_valid_default_ssl_backend TRUE)
588 set(USE_WINDOWS_SSPI ON)
592 set(_use_core_foundation_and_core_services ON)
600 set(_ssl_enabled ON)
601 set(USE_SECTRANSP ON)
605 set(_valid_default_ssl_backend TRUE)
629 set(_ssl_enabled ON)
630 set(USE_OPENSSL ON)
638 set(_valid_default_ssl_backend TRUE)
640 set(_curl_ca_bundle_supported TRUE)
643 set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
655 set(_ssl_enabled ON)
656 set(USE_MBEDTLS ON)
663 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MBEDTLS_CFLAGS}")
667 set(_valid_default_ssl_backend TRUE)
669 set(_curl_ca_bundle_supported TRUE)
674 set(_ssl_enabled ON)
675 set(USE_BEARSSL ON)
680 set(_valid_default_ssl_backend TRUE)
682 set(_curl_ca_bundle_supported TRUE)
689 set(_ssl_enabled ON)
690 set(USE_WOLFSSL ON)
697 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${WOLFSSL_CFLAGS}")
701 set(_valid_default_ssl_backend TRUE)
703 set(_curl_ca_bundle_supported TRUE)
711 set(GNUTLS_LIBRARIES ${GNUTLS_LINK_LIBRARIES})
718 set(_ssl_enabled ON)
719 set(USE_GNUTLS ON)
726 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NETTLE_CFLAGS}")
730 set(_valid_default_ssl_backend TRUE)
732 set(_curl_ca_bundle_supported TRUE)
736 set(CMAKE_REQUIRED_INCLUDES ${GNUTLS_INCLUDE_DIRS})
737 set(CMAKE_REQUIRED_LIBRARIES ${GNUTLS_LIBRARIES})
745 set(_ssl_enabled ON)
746 set(USE_RUSTLS ON)
753 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${RUSTLS_CFLAGS}")
757 set(_valid_default_ssl_backend TRUE)
759 set(_curl_ca_bundle_supported TRUE)
769 set(HAVE_LIBZ OFF)
772 set(HAVE_LIBZ ON)
781 set(HAVE_BROTLI OFF)
785 set(HAVE_BROTLI ON)
793 set(HAVE_ZSTD OFF)
797 set(HAVE_ZSTD ON)
810 set(CMAKE_REQUIRED_INCLUDES "${OPENSSL_INCLUDE_DIR}")
811 set(CMAKE_REQUIRED_LIBRARIES "${OPENSSL_LIBRARIES}")
820 set(CMAKE_REQUIRED_INCLUDES "${WOLFSSL_INCLUDE_DIRS}")
821 set(CMAKE_REQUIRED_LIBRARIES "${WOLFSSL_LIBRARIES}")
899 set(USE_NGHTTP2 OFF)
928 set(USE_NGHTTP3 ON)
950 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${QUICHE_CFLAGS}")
954 set(CMAKE_REQUIRED_INCLUDES "${QUICHE_INCLUDE_DIRS}")
955 set(CMAKE_REQUIRED_LIBRARIES "${QUICHE_LIBRARIES}")
979 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${MSH3_CFLAGS}")
990 set(USE_NGHTTP3 ON)
1001 set(USE_TLS_SRP 1)
1010 set(HAVE_LDAP_SSL ON)
1018 set(LDAP_LIBRARY "ldap" CACHE STRING "Name or full path to ldap library")
1021 set(LDAP_LBER_LIBRARY "lber" CACHE STRING "Name or full path to lber library")
1024 set(LDAP_INCLUDE_DIR "" CACHE STRING "Path to LDAP include directory")
1030 set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES})
1052 message(STATUS "LDAP_H not found CURL_DISABLE_LDAP set ON")
1053 set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
1055 message(STATUS "LDAP library '${LDAP_LIBRARY}' not found CURL_DISABLE_LDAP set ON")
1056 set(CURL_DISABLE_LDAP ON CACHE BOOL "" FORCE)
1063 set(CURL_LIBS "${LDAP_LIBRARY};${CURL_LIBS}")
1065 # set(LIBCURL_PC_REQUIRES_PRIVATE "${LDAP_PC_REQUIRES};${LIBCURL_PC_REQUIRES_PRIVATE}")
1068 set(CURL_LIBS "${LDAP_LBER_LIBRARY};${CURL_LIBS}")
1077 set(USE_OPENLDAP ON)
1081 set(HAVE_LDAP_SSL ON)
1092 set(CURL_DISABLE_LDAPS ON CACHE BOOL "" FORCE)
1102 set(USE_WIN32_IDN OFF)
1109 set(CMAKE_REQUIRED_LIBRARIES "icucore")
1115 set(USE_APPLE_IDN OFF)
1119 set(USE_APPLE_IDN OFF)
1124 set(HAVE_IDN2_H OFF)
1125 set(HAVE_LIBIDN2 OFF)
1129 set(CURL_LIBS "${LIBIDN2_LIBRARIES};${CURL_LIBS}")
1131 set(LIBCURL_PC_REQUIRES_PRIVATE "libidn2;${LIBCURL_PC_REQUIRES_PRIVATE}")
1135 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBIDN2_CFLAGS}")
1137 set(HAVE_IDN2_H 1)
1138 set(HAVE_LIBIDN2 1)
1145 set(USE_LIBPSL OFF)
1153 set(USE_LIBPSL ON)
1162 set(USE_LIBSSH2 OFF)
1170 set(USE_LIBSSH2 ON)
1186 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBSSH_CFLAGS}")
1188 set(USE_LIBSSH ON)
1195 set(USE_WOLFSSH OFF)
1202 set(USE_WOLFSSH ON)
1220 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBGSASL_CFLAGS}")
1222 set(USE_GSASL ON)
1232 set(HAVE_GSSAPI ${GSS_FOUND})
1235 set(HAVE_GSSGNU 1)
1240 set(_include_list "")
1257 set(CMAKE_REQUIRED_FLAGS ${GSS_CFLAGS})
1258 set(CMAKE_REQUIRED_LIBRARIES ${GSS_LIBRARIES})
1263 set(HAVE_OLD_GSSMIT ON)
1276 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GSS_CFLAGS}")
1297 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${LIBUV_CFLAGS}")
1299 set(USE_LIBUV ON)
1300 set(HAVE_UV_H ON)
1306 set(_extra_libs "rtmp")
1319 set(USE_LIBRTMP OFF)
1326 set(USE_UNIX_SOCKETS ON)
1339 set(CURL_CA_BUNDLE "auto" CACHE
1341 set(CURL_CA_FALLBACK OFF CACHE BOOL
1343 set(CURL_CA_PATH "auto" CACHE
1345 set(CURL_CA_EMBED "" CACHE
1355 set(_curl_ca_bundle_autodetect TRUE)
1358 set(CURL_CA_BUNDLE_SET TRUE)
1369 set(_curl_ca_path_autodetect TRUE)
1372 set(CURL_CA_PATH_SET TRUE)
1377 # Skip auto-detection of unset CA path because CA bundle is set explicitly
1379 # Skip auto-detection of unset CA bundle because CA path is set explicitly
1392 set(CURL_CA_BUNDLE "${_search_ca_bundle_path}" CACHE
1394 set(CURL_CA_BUNDLE_SET TRUE CACHE BOOL "Path to the CA bundle has been set")
1401 set(_search_ca_path "/etc/ssl/certs")
1406 set(CURL_CA_PATH "${_search_ca_path}" CACHE
1408 set(CURL_CA_PATH_SET TRUE CACHE BOOL "Path to the CA bundle has been set")
1413 set(CURL_CA_EMBED_SET FALSE)
1416 set(CURL_CA_EMBED_SET TRUE)
1443 set(HAVE_INET_NTOP 0)
1444 set(HAVE_INET_PTON 0)
1446 set(HAVE_INET_NTOP 1)
1447 set(HAVE_INET_PTON 1)
1518 set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${_variable}")
1532 set(ssize_t "long")
1535 set(ssize_t "__int64")
1541 set(HAVE_LONGLONG 1)
1544 set(HAVE_SUSECONDS_T 1)
1629 set(HAVE_INET_NTOP OFF)
1641 set(CMAKE_EXTRA_INCLUDE_FILES "winsock2.h")
1643 set(HAVE_ADDRESS_FAMILY ${HAVE_SIZEOF_ADDRESS_FAMILY})
1645 set(CMAKE_EXTRA_INCLUDE_FILES "sys/socket.h")
1647 set(HAVE_SA_FAMILY_T ${HAVE_SIZEOF_SA_FAMILY_T})
1679 set(_FILE_OFFSET_BITS 64)
1680 set(CMAKE_REQUIRED_DEFINITIONS "-D_FILE_OFFSET_BITS=64")
1690 set(HAVE_DECL_FSEEKO 1)
1695 set(CMAKE_REQUIRED_INCLUDES "${PROJECT_SOURCE_DIR}/include")
1696 set(CMAKE_EXTRA_INCLUDE_FILES "curl/system.h")
1698 set(CMAKE_EXTRA_INCLUDE_FILES "curl/curl.h")
1725 set(NEED_REENTRANT 1)
1735 set(${_curl_test} 0)
1737 set(${_curl_test} 1)
1753 set(in_addr_t "unsigned long")
1757 set(HAVE_DISABLED_NONBLOCKING 1)
1772 set(_mprintf_compile_flags "${_mprintf_compile_flags} -Wno-long-double")
1774 set(_mprintf_compile_flags "-Wno-long-double")
1782 set(CMAKE_TRY_COMPILE_TARGET_TYPE ${_cmake_try_compile_target_type_save})
1792 set(USE_WIN32_LARGE_FILES ON)
1795 set(CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS} -DCURL_EMBED_MANIFEST")
1799 set(USE_WIN32_CRYPTO ON)
1810 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
1816 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
1821 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
1827 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
1830 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
1859 …string(REGEX REPLACE "([a-zA-Z_][a-zA-Z0-9_]*)[\t ]*=[\t ]*([^\n]*)" "set(\\1 \\2)" _makefile_inc_…
1873 set(_install_cmake_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
1874 set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
1875 set(_generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
1876 set(_project_config "${_generated_dir}/${PROJECT_NAME}Config.cmake")
1877 set(_version_config "${_generated_dir}/${PROJECT_NAME}ConfigVersion.cmake")
1881 set(CURL_BUILD_TESTING ON)
1883 set(CURL_BUILD_TESTING OFF)
1887 set(CURL_MANPAGE "${PROJECT_BINARY_DIR}/docs/cmdline-opts/curl.1")
1888 set(CURL_ASCIIPAGE "${PROJECT_BINARY_DIR}/docs/cmdline-opts/curl.txt")
1912 set(_items ${_items} "${_label}")
1925 set(_use_curl_ntlm_core ON)
2050 # curl-config needs the following options to be set.
2051 set(CC "${CMAKE_C_COMPILER}")
2053 set(CONFIGURE_OPTIONS "")
2054 set(CURLVERSION "${_curl_version}")
2055 set(VERSIONNUM "${_curl_version_num}")
2056 set(prefix "${CMAKE_INSTALL_PREFIX}")
2057 set(exec_prefix "\${prefix}")
2059 set(includedir "${CMAKE_INSTALL_INCLUDEDIR}")
2061 set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
2064 set(libdir "${CMAKE_INSTALL_LIBDIR}")
2066 set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
2071 set(_ldflags "")
2072 set(LIBCURL_PC_LIBS_PRIVATE "")
2078 set(_custom_libs "")
2079 set(_custom_libdirs "")
2099 set(_libdir "${_libdir}lib")
2101 set(_libdir "${_libdir}/lib")
2107 set(_libdir "${_libdir}/${CMAKE_LIBRARY_ARCHITECTURE}")
2123 set(_implicit_libs ${CMAKE_C_IMPLICIT_LINK_LIBRARIES})
2128 set(_libname "${_lib}")
2172 set(LIBCURL_PC_LDFLAGS_PRIVATE "${_ldflags}")
2175 set(LIBCURL_PC_LDFLAGS_PRIVATE "")
2177 set(LIBCURL_PC_CFLAGS_PRIVATE "-DCURL_STATICLIB")
2181 set(ENABLE_SHARED "yes")
2182 set(LIBCURL_PC_REQUIRES "")
2183 set(LIBCURL_PC_LIBS "")
2184 set(LIBCURL_PC_CFLAGS "")
2186 set(ENABLE_SHARED "no")
2187 set(LIBCURL_PC_REQUIRES "${LIBCURL_PC_REQUIRES_PRIVATE}")
2188 set(LIBCURL_PC_LIBS "${LIBCURL_PC_LIBS_PRIVATE}")
2189 set(LIBCURL_PC_CFLAGS "${LIBCURL_PC_CFLAGS_PRIVATE}")
2192 set(ENABLE_STATIC "yes")
2194 set(ENABLE_STATIC "no")
2268 set(PACKAGE_FIND_VERSION_MAJOR 8)
2269 set(PACKAGE_FIND_VERSION_COUNT 1)
2295 set(_curl_sln_filename "${CMAKE_CURRENT_BINARY_DIR}/CURL.sln")
2320 set(CPACK_GENERATOR "TGZ")
2326 set(_cmake_sysroot ${CMAKE_OSX_SYSROOT})
2328 set(_cmake_sysroot ${CMAKE_SYSROOT})
2330 set(_buildinfo "\