Package: libcpputest-dev
Version: 4.0-2+b1
Severity: important
X-Debbugs-Cc: deltal...@gmail.com

Dear Maintainer,

An error is reported when trying to use CppUTest within a CMake project, even 
when using the sample CMakeLists.txt file from upstream docs at 
https://github.com/cpputest/cpputest?tab=readme-ov-file#cmake.

```
find_package(CppUTest REQUIRED)

add_executable(example_test ExampleTest.cpp)

target_link_libraries(example_test PRIVATE
    CppUTest::CppUTest
    CppUTest::CppUTestExt)
```

Then, running `cmake -B build/`, results in the following error:

```
CMake Error at /usr/lib/x86_64-linux-gnu/CppUTest/cmake/CppUTestConfig.cmake:11 
(message):
  File or directory /usr/lib/include referenced by variable
  CppUTest_INCLUDE_DIRS does not exist !
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/CppUTest/cmake/CppUTestConfig.cmake:27 
(set_and_check)
  test/CMakeLists.txt:1 (find_package)
```

In this upstream issue (https://github.com/cpputest/cpputest/issues/1639) it is 
suggested it may be a packaging issue.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.12-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

Reply via email to