oneapi-src / level-zero

oneAPI Level Zero Specification Headers and Loader
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
208 stars 90 forks source link

Build is broken with CMAKE_INCLUDE_CURRENT_DIR=ON #104

Open smaslov-intel opened 1 year ago

smaslov-intel commented 1 year ago

It is often times that other cmake projects make the current project's directory included. If such a project fetches Level Zero repo then its build is broken. To reproduce:

$ cmake -DCMAKE_INCLUDE_CURRENT_DIR=ON -G Ninja .. $ ninja

eero-t commented 1 year ago

If such a project fetches Level Zero repo

Is there any such a project, and why it would do that, instead of using L0 normally?

then its build is broken.