Modules: Fix CMP0159 warnings in modules when tracing

Closes: #25829
This commit is contained in:
Juan Ramos
2024-03-29 13:51:59 -07:00
parent 2e3692bde0
commit 3cd64287fe
70 changed files with 290 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ cmake_policy(PUSH)
cmake_policy(SET CMP0012 NEW) # if() recognizes numbers and booleans
cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
cmake_policy(SET CMP0057 NEW) # if IN_LIST
cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
function(_OPENMP_FLAG_CANDIDATES LANG)
if(NOT OpenMP_${LANG}_FLAG)