Skip to content

Commit 5cba46f

Browse files
estewart08Subodh Gupta
authored andcommitted
[SWDEV-324968] - Fixes libffi cmake issue on centos/sles.
Recently, a change was introduced where the cmake searches for libffi.a to fix versioning issues with 18.04/20.04. There is no libffi static archive on centos/sles so we need to add ffi as a fallback in order to find libff.so. Change-Id: Ia684e48fc19de4d9769e83d5fbfc26ece9e6db88
1 parent fb84ea9 commit 5cba46f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ if (LIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIR)
116116
LIBOMPTARGET_DEP_LIBFFI_LIBRARIES
117117
NAMES
118118
libffi.a
119+
ffi
119120
HINTS
120121
${LIBOMPTARGET_SEARCH_LIBFFI_LIBDIR}
121122
${LIBOMPTARGET_SEARCH_LIBFFI_LIBRARY_DIRS}

0 commit comments

Comments
 (0)