Skip to content

Fix include header file cannot be found #517

Open
jimwang118 wants to merge 1 commit intomfontanini:masterfrom
jimwang118:master
Open

Fix include header file cannot be found #517
jimwang118 wants to merge 1 commit intomfontanini:masterfrom
jimwang118:master

Conversation

@jimwang118
Copy link
Copy Markdown

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