Use remove_item to prune dynamic_list

This commit is contained in:
Martin Kroeker 2026-07-21 00:04:29 +02:00 committed by GitHub
parent 854b597dde
commit 6f5c9675b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ if (DYNAMIC_ARCH)
endif ()
if (DYNAMIC_LIST)
if (NO_AVX512)
string (REGEX REPLACE "SKYLAKEX|COOPERLAKE|SAPPHIRERAPIDS" "" DYNAMIC_LIST ${DYNAMIC_LIST})
list(REMOVE_ITEM ${DYNAMIC_LIST} SKYLAKEX COOPERLAKE SAPPHIRERAPIDS)
endif()
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
endif ()