Skip to content

Commit e349520

Browse files
committed
Remove all Intel libs from main library
1 parent e94647d commit e349520

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ include(CMakePackageConfigHelpers)
3333
include(GNUInstallDirs)
3434
find_package(PkgConfig)
3535

36-
if(CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM")
37-
# Compiler dependencies needs to be in library path or to be linked
38-
# statically
39-
add_link_options(-static-intel)
40-
endif()
41-
4236
# Build Options
4337
option(UMF_BUILD_SHARED_LIBRARY "Build UMF as shared library" OFF)
4438
option(UMF_BUILD_LEVEL_ZERO_PROVIDER "Build Level Zero memory provider" ON)

cmake/helpers.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2023-2024 Intel Corporation
1+
# Copyright (C) 2023-2025 Intel Corporation
22
# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

@@ -378,6 +378,9 @@ function(add_umf_library)
378378
elseif(LINUX)
379379
target_link_options(${ARG_NAME} PRIVATE
380380
"-Wl,--version-script=${ARG_LINUX_MAP_FILE}")
381+
if(CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM")
382+
target_link_options(${ARG_NAME} PRIVATE -no-intel-lib)
383+
endif()
381384
endif()
382385
endif()
383386

0 commit comments

Comments
 (0)