diff --git a/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake b/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake index c7594e4002bbb3..e062aac336e67c 100644 --- a/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake +++ b/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake @@ -116,6 +116,7 @@ if (LIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIR) LIBOMPTARGET_DEP_LIBFFI_LIBRARIES NAMES libffi.a + ffi HINTS ${LIBOMPTARGET_SEARCH_LIBFFI_LIBDIR} ${LIBOMPTARGET_SEARCH_LIBFFI_LIBRARY_DIRS}