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

install_headers() should also install headers into intermediate directories #7911

Closed
CoffeeFlux opened this issue Oct 28, 2020 · 1 comment
Closed

Comments

@CoffeeFlux
Copy link
Contributor

Copying from #2546, which was closed but AFAIK without the problem being resolved.

install_headers() and configure_file() with the install_dir option set should install headers into meson-private/include-intermediates during the meson config phase .

Many 3rd packages have header files and source files in same directory but install header files into a subdirectory after install, so this will cause an error finding the header files when using them in a subproject.

The workaround, as suggested by @nirbheek:

Yes, there is a way around this. You can copy the headers to the build directory into the subdir that you use when installed with configure_file(), and then create an include_directories() object that points to it.

@eli-schwartz
Copy link
Member

Duplicate of #2546

@eli-schwartz eli-schwartz marked this as a duplicate of #2546 Jul 15, 2021
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

No branches or pull requests

2 participants