]> www.ginac.de Git - cln.git/blob - cmake/modules/CLNstrutils.cmake
CLN can be built with CMake
[cln.git] / cmake / modules / CLNstrutils.cmake
1 # various string manipulation routines
2
3 if (NOT _cln_strutils_included)
4         set(_cln_strutils_included 1)
5
6         macro(cl_string_join var strlist delimiter)
7         set(_ret "")
8         foreach(_str ${strlist})
9                 if ("${_ret}" STREQUAL "")
10                         set(_ret "${_str}")
11                 else()
12                         set(_ret "${_ret}${delimiter}${_str}")
13                 endif()
14         endforeach()
15         set(${var} "${_ret}")
16         endmacro()
17
18 endif(NOT _cln_strutils_included)
19