CMake/Tests/RunCMake/CMP0055/CMP0055-NEW-Reject-Arguments.cmake
Gregor Jasny d54617d006 break: Add policy CMP0055 to check calls strictly
Reject break() without loop scope or any arguments.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
2014-11-25 14:14:20 -05:00

6 lines
76 B
CMake

cmake_policy(SET CMP0055 NEW)
foreach(i RANGE 1 2)
break(1)
endforeach()