igsc
igsc copied to clipboard
Cmake failures when trying to build
Here is how I build intel compute runtime: https://github.com/pvelesko/intel-compute-runtime-build The following patch is required for successful build.
diff --git a/lib/cmake/igscConfig.cmake b/lib/cmake/igscConfig.cmake
index 2f711b4..1a4a2cc 100644
--- a/lib/cmake/igscConfig.cmake
+++ b/lib/cmake/igscConfig.cmake
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021 Intel Corporation
-include("${CMAKE_CURRENT_LIST_DIR}/igscTargets.cmake")
+list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
+include(igscTargets)
What failures you see while building without patch?
Sorry for not including the original message - this issue was opened a while ago but I believe it was failing to find igsc targets or found the incorrect targets.
Not with bad lib path fixed now in https://github.com/intel/igsc/commit/ba6f2afbd96385fcb6b2a6e3c8e459727c8401fa?
I'm not sure why you patch worked, for CMake it should be the same...