Utilities
CMakePPLang provides the following utility commands:
cpp_equal
for checking for equality between two variablescpp_serialize
for serializing a variable into a JSON stringcpp_copy
for creating a copy of a variablecpp_contains
for checking if a string contains a certain substring, a list contains a certain item, or a map contains a certain keycpp_type_of
for determining the type of a variablecpp_check_conflicting_types
for checking if a string conflicts with a built-in typecpp_return
for returning values from a functioncpp_assert
for asserting that a condition is true and stopping the build process if that condition is not truecpp_directory_exists
for checking that a directory at a given path exists and is directory, not a filecpp_file_exists
for checking that a file at a given path exists and is in fact a file and not a directorycpp_set_global
for setting the value of a global variablecpp_get_global
for getting the value of a global variablecpp_append_global
for appending a value to a global variablecpp_unique_id
for creating a unique identifier
Examples of using these functions can be found Using Utilities.