Skip to content

Commit 983fdc1

Browse files
committed
Remove all Intel libs from main library
1 parent c480959 commit 983fdc1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)