[cmake-developers] Drop configure_file(IMMEDIATE) in 3.0?
Daniele E. Domenichelli
daniele.domenichelli at gmail.com
Tue Nov 12 11:24:25 EST 2013
Hi,
the configure_file(IMMEDIATE) argument was deprecated since 2.2 or
something similar (commit c9cc368a9db33273ad6287ea94fc285e90c4901f, Jun
2005).
Nonetheless the IMMEDIATE arguments is still accepted without even
issuing a warning:
else if(args[i] == "IMMEDIATE")
{
/* Ignore legacy option. */
}
I also noticed that there are still a lot of cmake modules (just try
"git grep IMMEDIATE Modules" ) and a lot of cmake files for other
projects that use this ignored option, and they keep spreading to the
copy-paste power.
Since I recently saw a lot of new policies that disable old commands,
maybe this is a good moment to add a policy and a warning for this as well?
Cheers,
Daniele
More information about the cmake-developers
mailing list