$NetBSD: patch-CMakeLists.txt,v 1.3 2025/08/22 14:24:40 wiz Exp $ Fix build with cmake 4. Add mozilla-rootcerts certstore to list --- CMakeLists.txt.orig 2019-04-24 12:58:14.000000000 +0000 +++ CMakeLists.txt @@ -8,16 +8,12 @@ endif(NOT CMAKE_INSTALL_PREFIX) project(qca) -cmake_minimum_required(VERSION 3.4) +cmake_minimum_required(VERSION 3.5) set(QCA_LIB_MAJOR_VERSION "2") set(QCA_LIB_MINOR_VERSION "2") set(QCA_LIB_PATCH_VERSION "1") -if(POLICY CMP0042) - cmake_policy(SET CMP0042 OLD) -endif() - option(BUILD_TESTS "Create test" ON) option(BUILD_TOOLS "Compile mozcerts and qcatool" ON) set(BUILD_PLUGINS "auto" CACHE STRING "Plugins for building (also possible values: none, all and auto)") @@ -309,6 +305,7 @@ else ( WIN32 ) "/etc/pki/tls/cert.pem" "/etc/ssl/ca-bundle.pem" "/usr/share/curl/curl-ca-bundle.crt" + "@PREFIX@/share/mozilla-rootcerts/cacert.pem" ) foreach (_current_try ${toTry}) if(EXISTS ${_current_try})