igsc icon indicating copy to clipboard operation
igsc copied to clipboard

Cmake failures when trying to build

Open pvelesko opened this issue 1 year ago • 3 comments

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)

pvelesko avatar Jul 31 '24 05:07 pvelesko

What failures you see while building without patch?

ausyskin avatar Mar 16 '25 15:03 ausyskin

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.

pvelesko avatar Mar 17 '25 07:03 pvelesko

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...

ausyskin avatar Mar 17 '25 09:03 ausyskin