diff options
author | Brad King <brad.king@kitware.com> | 2012-11-06 19:13:10 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-11-06 19:13:10 (GMT) |
commit | 11b8a44cfce1ad2383172760b9ac07a670b376fc (patch) | |
tree | de8530b52bc256cecd039c7d390883b56568f798 /Tests/GeneratorExpression/check.cmake | |
parent | 43d3a6d49e402fa735022fd0720355a369df75fe (diff) | |
parent | 9be64f34c299edfa69b126d419b4bd0619741656 (diff) | |
download | CMake-11b8a44cfce1ad2383172760b9ac07a670b376fc.zip CMake-11b8a44cfce1ad2383172760b9ac07a670b376fc.tar.gz CMake-11b8a44cfce1ad2383172760b9ac07a670b376fc.tar.bz2 |
Merge topic 'fix-genex-CONFIG'
9be64f3 GenEx: Use case insensitive comparison for $<CONFIG:...>
Diffstat (limited to 'Tests/GeneratorExpression/check.cmake')
-rw-r--r-- | Tests/GeneratorExpression/check.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/GeneratorExpression/check.cmake b/Tests/GeneratorExpression/check.cmake index 88a60ce..af436de 100644 --- a/Tests/GeneratorExpression/check.cmake +++ b/Tests/GeneratorExpression/check.cmake @@ -18,6 +18,11 @@ check(test_and_1_1 "1") check(test_and_0_invalidcontent "0") check(test_config_0 "0") check(test_config_1 "1") +foreach(c debug release relwithdebinfo minsizerel) + if(NOT "${test_config_${c}}" MATCHES "^(0+|1+)$") + message(SEND_ERROR "test_config_${c} is \"${test_config_${c}}\", not all 0 or all 1") + endif() +endforeach() check(test_not_0 "1") check(test_not_1 "0") check(test_or_0 "0") |