FS#69239 - [poco] CMake requires non existing target

Attached to Project: Community Packages
Opened by Christoph (laudin) - Thursday, 07 January 2021, 11:30 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 14 October 2021, 21:21 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The cmake target "Poco::DataMySQL" defined in "PocoDataMySQLTargets.cmake" has a dependency to "MySQL::client", but this target is not defined, so the generation fails if you try to use this target.

Probably it should be "libmysqlclient.so" instead (included in mariadb-libs).

Error message:
CMake Error at CMakeLists.txt:6 (add_executable):
Target "untitled" links to target "MySQL::client" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?

Steps to reproduce:
Generate the attached cmake project.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 14 October 2021, 21:21 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 29 April 2021, 21:46 GMT
Could you make a patch for the package to fix this up? I don't really care for poco much and would likely drop the package as it doesn't have any dependents.
Comment by Christoph (laudin) - Monday, 03 May 2021, 18:30 GMT
I have used this patch on my system to get it working.
   patch (0.5 KiB)
Comment by Sven-Hendrik Haase (Svenstaro) - Monday, 03 May 2021, 20:07 GMT
Could you also make a patch for the package itself?
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 13 October 2021, 03:25 GMT
Are you still interested in this?
Comment by Christoph (laudin) - Thursday, 14 October 2021, 13:06 GMT
Is that what you ask for?

Loading...