cmake: fix formatting of ElektraConfig.cmake.in
+# ~~~
# - Config file for Elektra
#
# Variables for the Elektra library:
#
-# Elektra_INCLUDE_DIRS - where to find kdb.h, etc. Elektra_LIBRARIES - List of libraries when using Elektra.
+# Elektra_INCLUDE_DIRS - where to find kdb.h, etc.
+# Elektra_LIBRARIES - List of libraries when using Elektra.
#
# Find the kdb tools:
#
# Elektra_TEMPLATES_DIR - Folder where to find templates for kdb gen
+# ~~~
include (CMakeParseArguments)
@@ -92,8 +95,17 @@ function (elektra_kdb_gen
list (APPEND PARAMS "${param}")
endforeach (param ${ARG_PARAMS})
- execute_process (COMMAND ${KDB} gen "${template}" - "${output_name}" ${PARAMS} OUTPUT_VARIABLE PARTS_LINES)
- string (REPLACE "\n" ";" PARTS ${PARTS_LINES})
+ execute_process (COMMAND ${KDB}
+ gen
+ "${template}"
+ -
+ "${output_name}"
+ ${PARAMS}
+ OUTPUT_VARIABLE PARTS_LINES)
+ string (REPLACE "\n"
+ ";"
+ PARTS
+ ${PARTS_LINES})
set (OUTPUTS "")
foreach (part ${PARTS})
