Utilities
CMakePPLang provides the following utility commands:
cpp_equalfor checking for equality between two variablescpp_serializefor serializing a variable into a JSON stringcpp_copyfor creating a copy of a variablecpp_containsfor checking if a string contains a certain substring, a list contains a certain item, or a map contains a certain keycpp_type_offor determining the type of a variablecpp_check_conflicting_typesfor checking if a string conflicts with a built-in typecpp_returnfor returning values from a functioncpp_assertfor asserting that a condition is true and stopping the build process if that condition is not truecpp_directory_existsfor checking that a directory at a given path exists and is directory, not a filecpp_file_existsfor checking that a file at a given path exists and is in fact a file and not a directorycpp_set_globalfor setting the value of a global variablecpp_get_globalfor getting the value of a global variablecpp_append_globalfor appending a value to a global variablecpp_unique_idfor creating a unique identifier
Examples of using these functions can be found Using Utilities.