Skip to content

Commit

Permalink
Stricter match condition for _fail strings (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
cresswellp authored Oct 11, 2024
1 parent 7c30c95 commit 5b95b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/fortran_features/CheckFortranFeatures.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ macro(_figure_out_fortran_feature current_feature)
# Find set of files that match current_feature, excepting _fail and _fail_compile.
file(GLOB ALL_FEATURE_FILES "${Fortran_FEATURE_CHECK_DIR}/${current_feature}*.F90")
foreach(filename ${ALL_FEATURE_FILES})
if(filename MATCHES "_fail")
if(filename MATCHES "(_fail|_fail_compile).F90$")
list(REMOVE_ITEM ALL_FEATURE_FILES ${filename})
endif()
endforeach()
Expand Down

0 comments on commit 5b95b66

Please sign in to comment.