Add CMake flag to warn/denied all non-target based CMake commands
Lots of documents on the Internet mention that the proper way to write CMake is to use the CMake modern approach by using commands that work on targets instead of globally.
As such, I think a flag should exist to WARN or even DENIED based on project settings the uses of global commands that would break the rule of modern CMake usage.
Edited by Yannick Koehler