File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
shared/offline_compiler/source Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11#
2- # Copyright (C) 2021-2024 Intel Corporation
2+ # Copyright (C) 2021-2025 Intel Corporation
33#
44# SPDX-License-Identifier: MIT
55#
@@ -112,7 +112,14 @@ endif()
112112
113113if (IS_DIRECTORY ${IGA_INCLUDE_DIR} )
114114 set (IGA_HEADERS_AVAILABLE TRUE )
115- set (IGA_LIBRARY_NAME "iga${NEO_BITS} " )
115+ if (NEO__IGC_FOUND)
116+ string (REPLACE "." ";" IGA_VERSION ${NEO__IGC_VERSION} )
117+ list (GET IGA_VERSION 0 IGA_VERSION_MAJOR)
118+ set (IGA_LIBRARY_FILENAME "${CMAKE_SHARED_LIBRARY_PREFIX} iga${NEO_BITS}${CMAKE_SHARED_LIBRARY_SUFFIX} .${IGA_VERSION_MAJOR} " )
119+ else ()
120+ set (IGA_LIBRARY_FILENAME "${CMAKE_SHARED_LIBRARY_PREFIX} iga${NEO_BITS}${CMAKE_SHARED_LIBRARY_SUFFIX} " )
121+ endif ()
122+ message (STATUS "IGA library name: ${IGA_LIBRARY_FILENAME} " )
116123else ()
117124 set (IGA_HEADERS_AVAILABLE FALSE )
118125endif ()
Original file line number Diff line number Diff line change 11#
2- # Copyright (C) 2020-2024 Intel Corporation
2+ # Copyright (C) 2020-2025 Intel Corporation
33#
44# SPDX-License-Identifier: MIT
55#
@@ -358,7 +358,7 @@ target_include_directories(${OCLOC_NAME}_lib BEFORE PRIVATE ${CLOC_LIB_INCLUDES}
358358target_include_directories (${OCLOC_NAME} _lib BEFORE PRIVATE ${IGA_INCLUDE_DIR} )
359359
360360target_compile_definitions (${OCLOC_NAME} _lib PUBLIC ${CLOC_LIB_LIB_FLAGS_DEFINITIONS} ${OCLOC_SUPPORTED_CORE_FLAGS_DEFINITONS} DEFAULT_PLATFORM=${DEFAULT_SUPPORTED_PLATFORM}
361- IGA_LIBRARY_NAME="${CMAKE_SHARED_LIBRARY_PREFIX}${IGA_LIBRARY_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX } "
361+ IGA_LIBRARY_NAME="${IGA_LIBRARY_FILENAME } "
362362 ${AOT_DEFINITIONS}
363363)
364364target_compile_definitions (${OCLOC_NAME} _lib PUBLIC ${NEO__IGC_COMPILE_DEFINITIONS} )
You can’t perform that action at this time.
0 commit comments