diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-03-21 18:34:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-05-21 19:29:34 (GMT) |
commit | 0ab50aea4c4d7099b339fb38b4459d0debbdbd85 (patch) | |
tree | 573c1c8fa48079f663c5c0a61d02c98040818627 /Tests/StringFileTest/CMakeLists.txt | |
parent | 272431a84ff13eb17cf04389428f57c7fe13e3a2 (diff) | |
download | CMake-0ab50aea4c4d7099b339fb38b4459d0debbdbd85.zip CMake-0ab50aea4c4d7099b339fb38b4459d0debbdbd85.tar.gz CMake-0ab50aea4c4d7099b339fb38b4459d0debbdbd85.tar.bz2 |
string: Add MAKE_C_IDENTIFIER subcommand
Diffstat (limited to 'Tests/StringFileTest/CMakeLists.txt')
-rw-r--r-- | Tests/StringFileTest/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt index 6d798b0..00383ab 100644 --- a/Tests/StringFileTest/CMakeLists.txt +++ b/Tests/StringFileTest/CMakeLists.txt @@ -280,3 +280,9 @@ endif() if(NOT ST_NINE STREQUAL "9") message(SEND_ERROR "SUBSTRING does not return the tail when selected with -1") endif() + +string(MAKE_C_IDENTIFIER "1one-two$" MCI_1) + +if(NOT MCI_1 STREQUAL _1one_two_) + message(SEND_ERROR "MAKE_C_IDENTIFIER did not create expected result.") +endif() |