#1059201 libnng-dev 1.6.0 break cmake build

Package:
libnng-dev
Source:
libnng-dev
Description:
Lightweight Messaging Library - development
Submitter:
ayan
Date:
2023-12-21 07:15:04 UTC
Severity:
normal
#1059201#5
Date:
2023-12-21 07:12:19 UTC
From:
To:
Dear Maintainer,

After upgrade to libnng-dev 1.6.0, build program that depends on
libnng-dev with cmake will report error if using:

find_package(nng CONFIG REQUIRED) in cmake.

Output error when cmake:


    CMake Error at /usr/lib/x86_64-linux-gnu/cmake/nng/nng-config.cmake:55 (find_package):
    By not providing "FindmbedTLS.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "mbedTLS", but
    CMake did not find one.

    Could not find a package configuration file provided by "mbedTLS" with any
    of the following names:

      mbedTLSConfig.cmake
      mbedtls-config.cmake

    Add the installation prefix of "mbedTLS" to CMAKE_PREFIX_PATH or set
    "mbedTLS_DIR" to a directory containing one of the above files.  If
    "mbedTLS" provides a separate development package or SDK, be sure it has
    been installed.


Ref to file nng-config.cmake lines:

    # Make sure we find packages for our dependencies
    foreach(_PKG IN ITEMS Threads;mbedTLS)
            find_package(${_PKG} REQUIRED)
    endforeach ()


These break program building.