-
Notifications
You must be signed in to change notification settings - Fork 92
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
Headers added by passing CMAKE_PREFIX_PATH are not found #198
Comments
The prefix path needs to be passed to flycheck for the on-the-fly errors to disappear. I'm not sure why said path isn't in the compilation database, or if it is, why it's not getting treated properly. |
Thanks for the reply.
well the compilation database does contain the path. This is a bit strange but I did a test: I removed the |
That's... even weirder. Unless the path in the compilation db is relative? I don't know. |
Hi, and thanks for great work.
My project depends on a package that is not in the system search path so I pass its location via
-DCMAKE_PREFIX_PATH
:cmake-ide
runs the CMakeLists.txt and if I ask, it compiles it perfectly. However, in the buffer I'm having on the fly error that the headers in that install directory cannot be found. Furthermore, rtags-completion fails to populate the backend with the contents of those headers.I also tried Qtcreator which uses libclang and there, I faced no problem. Either case, the code compiles.
The json file correctly contains
-I~/some/user/specified/path/install/include
. Note the include at the end of the path which is as it is supposed to be.Any thoughts?
The text was updated successfully, but these errors were encountered: