Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Feature Request]: Consistent include directory when used as subproject or installed

Open
#260 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, cpp
Domain
build-system

Research direction

Start by reviewing the CMake configuration and the include-directory layout used when Level Zero is consumed through FetchContent versus installed. Confirm how the headers are exposed in each mode. Done means consumers can use the documented <level_zero/ze_api.h> include consistently in both cases.

Written by the indexing model from the issue text.

Description

It is quite popular in CMake projects to depend on an upstream project by including it into the build system of the dependent project, for example using FetchContent.

Unfortunately if consumed like this, the recommended way of including the header files from the project can't work:

#include <level_zero/ze_api.h> // Can't work, the include folder does not have a parent named level_zero

Related to: #57

Dominant language
C++
Stars
335
Forks
140
Avg merge
12h 32m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from oneapi-src/level-zero

All issues in oneapi-src/level-zero

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.