Skip to content

Use PROJECT_*_DIR instead of CMAKE_*_DIR to support subproject builds#458

Open
mschilling0 wants to merge 1 commit intooneapi-src:masterfrom
mschilling0:matt_proj_dir
Open

Use PROJECT_*_DIR instead of CMAKE_*_DIR to support subproject builds#458
mschilling0 wants to merge 1 commit intooneapi-src:masterfrom
mschilling0:matt_proj_dir

Conversation

@mschilling0
Copy link
Copy Markdown
Contributor

@mschilling0 mschilling0 commented May 7, 2026

Replace CMAKE_[SOURCE/BINARY]_DIR usage with PROJECT_[SOURCE/BINARY]_DIR to support subproject builds. This helps make the project usable as a subproject (e.g. via add_subdirectory or FetchContent) without polluting the parent build tree.

Replace CMAKE_[SOURCE/BINARY]_DIR usage with PROJECT_[SOURCE/BINARY]_DIR to
support subproject builds. This helps make the project usable as a subproject
(e.g. via add_subdirectory or FetchContent) without polluting the parent build tree.

Signed-off-by: Schilling, Matthew <matthew.schilling@intel.com>
@mschilling0
Copy link
Copy Markdown
Contributor Author

Sorry for the large change - avoids the need for this patch.

https://github.com/intel/pti-gpu/blob/master/sdk/cmake/levelzero_version_fix.patch

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant