Skip to content

Headers added by passing CMAKE_PREFIX_PATH are not found #198

Open
@Pouya-moh

Description

@Pouya-moh

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:

((nil . ((cmake-ide-build-dir . "build")
         (cmake-ide-cmake-args . ("-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DCMAKE_PREFIX_PATH=~/some/user/specified/path/install/")))))

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions