CMAKE_TLS_VERIFY.rst 560 B

1234567891011121314151617
  1. CMAKE_TLS_VERIFY
  2. ----------------
  3. Specify the default value for the :command:`file(DOWNLOAD)` and
  4. :command:`file(UPLOAD)` commands' ``TLS_VERIFY`` options.
  5. If not set, the default is *off*.
  6. This variable is also used by the :module:`ExternalProject` and
  7. :module:`FetchContent` modules for internal calls to :command:`file(DOWNLOAD)`.
  8. TLS verification can help provide confidence that one is connecting
  9. to the desired server. When downloading known content, one should
  10. also use file hashes to verify it.
  11. .. code-block:: cmake
  12. set(CMAKE_TLS_VERIFY TRUE)