1. 13 Sep, 2019 2 commits
    • cmake: fix various misuses of MESSAGE() · 212b6f65
      The MESSAGE() function expects as first argument the message type, e.g.
      STATUS or FATAL_ERROR. In some places, we were misusing this to either
      not provide any type, which would then erroneously print the message to
      standard error, or to use FATAL instead of FATAL_ERROR.
      
      Fix all of these instances. Also, remove some MESSAGE invocations that
      are obvious leftovers from debugging the build system.
      Patrick Steinhardt committed
    • cmake: properly abort if no mbedTLS cert location is found · e77fdf87
      When using mbedTLS as backend, then the user may specify the location of
      where system certificates are installed. If no such location is provided
      by the user, CMake will try to autodetect the location by using the
      openssl executable, if installed. If no location could be detected, then
      the mbedTLS is essentially worthless as it is completely unable to
      verify any certificates.
      
      To avoid use of such misconfigured mbedTLS configurations, let's error
      out if we were unable to find out the location.
      Patrick Steinhardt committed
  2. 10 Sep, 2019 1 commit
  3. 14 Jun, 2019 1 commit
    • cmake: Modulize our TLS & hash detection · 94fc83b6
      The interactions between `USE_HTTPS` and `SHA1_BACKEND` have been
      streamlined. Previously we would have accepted not quite working
      configurations (like, `-DUSE_HTTPS=OFF -DSHA1_BACKEND=OpenSSL`) and, as
      the OpenSSL detection only ran with `USE_HTTPS`, the link would fail.
      
      The detection was moved to a new `USE_SHA1`, modeled after `USE_HTTPS`,
      which takes the values "CollisionDetection/Backend/Generic", to better
      match how the "hashing backend" is selected, the default (ON) being
      "CollisionDetection".
      
      Note that, as `SHA1_BACKEND` is still used internally, you might need to
      check what customization you're using it for.
      Etienne Samson committed