Skip to content
This repository was archived by the owner on Aug 30, 2020. It is now read-only.
This repository was archived by the owner on Aug 30, 2020. It is now read-only.

meson/ninja generator creates incorrect include paths #117

@Philipp-M

Description

@Philipp-M

when generating with a trivial meson build file:

project('OctreeOOConverter', 'cpp',
  default_options : ['c_std=c17', 'cpp_std=c++17'])
inc = include_directories('inc')
src = ['src/main.cpp']
exe = executable('OctreeOOConverter', src, include_directories : inc)

the following flags are generated:

flags = [
    '-x',
    'c++',
    '-D_FILE_OFFSET_BITS=64',
    '-I.',
    '-I../../home/philm/Development/rayTracing/OctreeOOConverter',
    '-I../../home/philm/Development/rayTracing/OctreeOOConverter/inc',
    '-IOctreeOOConverter@exe',
    '-Wall',
    '-Winvalid-pch',
    '-Wnon-virtual-dtor',
    '-std=c++17',
]

as one can see, the file paths are incorrect and are not working with YCM
they should be the following:

flags = [
    ...
    '-I/home/philm/Development/rayTracing/OctreeOOConverter',
    '-I/home/philm/Development/rayTracing/OctreeOOConverter/inc',
    ...
]

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