diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-08-27 08:57:16 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-08-28 08:23:20 (GMT) |
commit | dcc00ece4b297f94974b84783805af9c01b6e681 (patch) | |
tree | 54939d4cdad6cdcec127d92a2f05c3fa03cffbf4 /Tests/GeneratorExpression/check-part3.cmake | |
parent | 150bc7da3dba160acab5cb11387c9a29255973ac (diff) | |
download | CMake-dcc00ece4b297f94974b84783805af9c01b6e681.zip CMake-dcc00ece4b297f94974b84783805af9c01b6e681.tar.gz CMake-dcc00ece4b297f94974b84783805af9c01b6e681.tar.bz2 |
Genex: Add the PLATFORM_ID expression.
Diffstat (limited to 'Tests/GeneratorExpression/check-part3.cmake')
-rw-r--r-- | Tests/GeneratorExpression/check-part3.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/GeneratorExpression/check-part3.cmake b/Tests/GeneratorExpression/check-part3.cmake index 74a596c..93ea487 100644 --- a/Tests/GeneratorExpression/check-part3.cmake +++ b/Tests/GeneratorExpression/check-part3.cmake @@ -26,3 +26,11 @@ check(test_alias_file_lib "1") check(test_alias_target_name "1") check(test_early_termination_1 "$<:") check(test_early_termination_2 "$<:,") +check(test_platform_id "${system_name}") +foreach(system Linux Windows Darwin) + if(system_name STREQUAL system) + check(test_platform_id_${system} 1) + else() + check(test_platform_id_${system} 0) + endif() +endforeach() |