355
355
"The NEW behavior for this policy is to allow the commands to do their "
356
356
"default cmake_policy PUSH and POP.",
357
357
2,6,3, cmPolicies::WARN);
361
"if() recognizes numbers and boolean constants.",
362
"In CMake versions 2.6.4 and lower the if() command implicitly "
363
"dereferenced arguments corresponding to variables, even those named "
364
"like numbers or boolean constants, except for 0 and 1. "
365
"Numbers and boolean constants such as true, false, yes, no, "
366
"on, off, y, n, notfound, ignore (all case insensitive) were recognized "
367
"in some cases but not all. "
368
"For example, the code \"if(TRUE)\" might have evaluated as false. "
369
"Numbers such as 2 were recognized only in "
370
"boolean expressions like \"if(NOT 2)\" (leading to false) "
371
"but not as a single-argument like \"if(2)\" (also leading to false). "
372
"Later versions of CMake prefer to treat numbers and boolean constants "
373
"literally, so they should not be used as variable names."
375
"The OLD behavior for this policy is to implicitly dereference variables "
376
"named like numbers and boolean constants. "
377
"The NEW behavior for this policy is to recognize numbers and "
378
"boolean constants without dereferencing variables with such names.",
379
2,8,0, cmPolicies::WARN);
383
"Duplicate binary directories are not allowed.",
384
"CMake 2.6.3 and below silently permitted add_subdirectory() calls "
385
"to create the same binary directory multiple times. "
386
"During build system generation files would be written and then "
387
"overwritten in the build tree and could lead to strange behavior. "
388
"CMake 2.6.4 and above explicitly detect duplicate binary directories. "
389
"CMake 2.6.4 always considers this case an error. "
390
"In CMake 2.8.0 and above this policy determines whether or not "
391
"the case is an error. "
392
"The OLD behavior for this policy is to allow duplicate binary "
394
"The NEW behavior for this policy is to disallow duplicate binary "
395
"directories with an error.",
396
2,8,0, cmPolicies::WARN);
400
"Input directories must have CMakeLists.txt.",
401
"CMake versions before 2.8 silently ignored missing CMakeLists.txt "
402
"files in directories referenced by add_subdirectory() or subdirs(), "
403
"treating them as if present but empty. "
404
"In CMake 2.8.0 and above this policy determines whether or not "
405
"the case is an error. "
406
"The OLD behavior for this policy is to silently ignore the problem. "
407
"The NEW behavior for this policy is to report an error.",
408
2,8,0, cmPolicies::WARN);
360
411
cmPolicies::~cmPolicies()