diff options
author | Brad King <brad.king@kitware.com> | 2014-11-14 22:33:14 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-11-19 11:35:15 +0100 |
commit | fba9f41b84cc591f124cef7d796321cfa000fc8c (patch) | |
tree | e3d38da14bbde8dbd27b5d1b9ea14cebe0a6302d /COPYING | |
parent | 54fc885efd3a86874c101b28c1744f7692589daf (diff) |
CMake: Simplify if() conditions on check result variables
Remove use of an old hack that takes advantage of the auto-dereference
behavior of the if() command to detect if a variable is defined. The
hack has the form:
if("${VAR} MATCHES "^${VAR}$")
where "${VAR}" is a macro argument reference. Use if(DEFINED) instead.
This also avoids warnings for CMake Policy CMP0054 in CMake 3.1.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions