Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix include header file cannot be found #517

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jimwang118
Copy link

After completing the compilation, when I use the find_package(libtins CONFIG REQUIRED GLOBAL) or find_package(Pkgconfig REQUIRED) pkg_check_modules(tins REQUIRED IMPORTED_TARGET libtins) method to call the libtins library in my own project, I get the following prompt: fatal error: 'tins/tins.h' file not found.

By adding target_include_directories (tins PUBLIC $<INSTALL_INTERFACE:include>) in the cmakelists.txt file and deleting the redundant path tins in the cflags in the libtins.pc.in file, the header file #include <tins/tins.h> can be found in my test project .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant