mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
As written, foreach loops with a trailing `IN` (i.e., no loop variable(s) given) lead to an assertion error. Handle this case by exiting early when we know the loop won't execute anything. Fixes: #27135
26 lines
1003 B
CMake
26 lines
1003 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(BadRangeInFunction)
|
|
run_cmake(foreach-all-test)
|
|
run_cmake(foreach-ITEMS-multiple-iter-vars-test)
|
|
run_cmake(foreach-LISTS-multiple-iter-vars-test)
|
|
run_cmake(foreach-ZIP_LISTS-test)
|
|
run_cmake(foreach-ITEMS-with-ZIP_LISTS-mix-test)
|
|
run_cmake(foreach-LISTS-with-ZIP_LISTS-mix-test)
|
|
run_cmake(foreach-ZIP_LISTS-with-ITEMS-mix-test)
|
|
run_cmake(foreach-ZIP_LISTS-with-LISTS-mix-test)
|
|
run_cmake(foreach-ZIP_LISTS-multiple-iter-vars-test)
|
|
run_cmake(foreach-ZIP_LISTS-iter-vars-mismatch-test-1)
|
|
run_cmake(foreach-ZIP_LISTS-iter-vars-mismatch-test-2)
|
|
run_cmake(foreach-RANGE-non-int-test-1)
|
|
run_cmake(foreach-RANGE-non-int-test-2-1)
|
|
run_cmake(foreach-RANGE-non-int-test-2-2)
|
|
run_cmake(foreach-RANGE-non-int-test-3-1)
|
|
run_cmake(foreach-RANGE-non-int-test-3-2)
|
|
run_cmake(foreach-RANGE-non-int-test-3-3)
|
|
run_cmake(foreach-RANGE-invalid-test)
|
|
run_cmake(foreach-RANGE-out-of-range-test)
|
|
run_cmake(foreach-var-scope-CMP0124-OLD)
|
|
run_cmake(foreach-var-scope-CMP0124-NEW)
|
|
run_cmake(TrailingIn)
|