summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-27 13:01:33 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-27 13:01:33 (GMT)
commit9f43fa602d53d131adffd1a3bb8188b549a96a01 (patch)
treeec0f927882fd92f02908a70fa726a4fee4ff67c8 /Source/cmPolicies.h
parent92caf3473337f45e4f54fdf727db3c3359c90b42 (diff)
downloadCMake-9f43fa602d53d131adffd1a3bb8188b549a96a01.zip
CMake-9f43fa602d53d131adffd1a3bb8188b549a96a01.tar.gz
CMake-9f43fa602d53d131adffd1a3bb8188b549a96a01.tar.bz2
Report expanded arguments in if() command errors
The if() command reports its arguments at the beginning of some error messages. Originally it reported the un-expanded form of the arguments because in ancient CMake versions no context information was available. Now it is more useful to see the real arguments, which may be mentioned in the main error message. Since full context information is now available, users can refer back to the source if they need to see the unexpanded form of the arguments. For example, the code set(regex "++") if("x" MATCHES "${regex}") endif() now produces the message if given arguments: "x" "MATCHES" "++" Regular expression "++" cannot compile instead of if given arguments "x" MATCHES "${regex}" Regular expression "++" cannot compile
Diffstat (limited to 'Source/cmPolicies.h')
0 files changed, 0 insertions, 0 deletions