KomputeProject / kompute

General purpose GPU compute framework built on Vulkan to support 1000s of cross vendor graphics cards (AMD, Qualcomm, NVIDIA & friends). Blazing fast, mobile-enabled, asynchronous and optimized for advanced GPU data processing usecases. Backed by the Linux Foundation.
http://kompute.cc/
Apache License 2.0
1.88k stars 145 forks source link

Fix example build #339

Closed ToKiNoBug closed 9 months ago

ToKiNoBug commented 9 months ago

I see 2 example tests in "C++ Test" action failed after merging my PR.

It was caused by CMAKE_SOURCE_DIR in file cmake/set_package_info.cmake to access readme and license files. It seems ok beacuse they works almost the same as PROJECT_SOURCE_DIR, but in example builds CMAKE_SOURCE_DIR points to examples/logistic_regression , however license and readme files are not located here.

So I replaced CMAKE_SOURCE_DIR with PROJECT_SOURCE_DIR to fix this.