summaryrefslogtreecommitdiffstats
path: root/Tests/GeneratorExpression/check-common.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-23 13:07:20 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-23 13:09:25 (GMT)
commit7de868c4d7c8bfe35d201ed480328f3177a1325b (patch)
tree2a30e41837218f147bda1384e915bb2287b975bf /Tests/GeneratorExpression/check-common.cmake
parent44f2ade2cb8474cfc3e9f593958557a8761d89c0 (diff)
downloadCMake-7de868c4d7c8bfe35d201ed480328f3177a1325b.zip
CMake-7de868c4d7c8bfe35d201ed480328f3177a1325b.tar.gz
CMake-7de868c4d7c8bfe35d201ed480328f3177a1325b.tar.bz2
Tests: Simplify GeneratorExpression check implementation
Use a function instead of a macro so we do not need an extra layer of backslashes. Use a bracket argument to avoid another layer of extra backslashes.
Diffstat (limited to 'Tests/GeneratorExpression/check-common.cmake')
-rw-r--r--Tests/GeneratorExpression/check-common.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/GeneratorExpression/check-common.cmake b/Tests/GeneratorExpression/check-common.cmake
index 8ffebd7..faf5d4f 100644
--- a/Tests/GeneratorExpression/check-common.cmake
+++ b/Tests/GeneratorExpression/check-common.cmake
@@ -1,5 +1,5 @@
-macro(check var val)
+function(check var val)
if(NOT "${${var}}" STREQUAL "${val}")
message(SEND_ERROR "${var} is \"${${var}}\", not \"${val}\"")
endif()
-endmacro()
+endfunction()