From 47ba85f314808476c8254779389607f9af60231f Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 22 Jul 2021 17:24:15 +0200 Subject: [PATCH] Fix regex to match kernels suffixed with cpuname too --- cmake/utils.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/utils.cmake b/cmake/utils.cmake index 2c1a1c763..6b54092ea 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -313,10 +313,10 @@ function(GenerateNamedObjects sources_in) list(APPEND SRC_LIST_OUT ${new_source_file}) message (STATUS ${new_source_file}) if (DEFINED HAVE_FMA3) - if ( ${new_source_file} MATCHES "(s|d?)rot_k.c") + if ( ${new_source_file} MATCHES "(s|d?)rot_k.*c") set_source_files_properties(${new_source_file} PROPERTIES COMPILE_OPTIONS "-mfma") endif () - if ( ${new_source_file} MATCHES "dgemv_t_k.c") + if ( ${new_source_file} MATCHES "dgemv_t_k.*c") set_source_files_properties(${new_source_file} PROPERTIES COMPILE_OPTIONS "-mfma") endif () endif ()