aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-11-14 22:33:14 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-11-19 11:35:15 +0100
commitfba9f41b84cc591f124cef7d796321cfa000fc8c (patch)
treee3d38da14bbde8dbd27b5d1b9ea14cebe0a6302d /tests/libtest
parent54fc885efd3a86874c101b28c1744f7692589daf (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 'tests/libtest')
0 files changed, 0 insertions, 0 deletions