Compiling Error and Cmake Find Package

Urs Fleisch urs.fleisch at gmail.com
Sat Mar 27 07:48:08 GMT 2021


Please do not include terminal screenshots, copy the text from the terminal
instead!
I am not sure what you are trying to do, but it seems that you have the
source code of TagLib inside your project. This is not how it works. You
will have to build TagLib as a library and then link your project to it,
either dynamically or statically.
Concerning the taglib-config.cmake case: This is an internal file from the
TagLib source code, actually a shell script with variables in it which will
be expanded by CMake, not something you can include in your CMake files.
The resulting file is taglib-config, which is a package config style tool
to get the compiler and linker options for TagLib. Unfortunately, there is
no FindTagLib.cmake file provided with TagLib, most projects have their
own, you could try to reuse such a file or use the low level find_library()
and find_path() CMake functions.

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20210327/c1e88f04/attachment.htm>


More information about the taglib-devel mailing list