mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
string: Add MAKE_C_IDENTIFIER subcommand
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user