Fix string literal exceeding max length

Fixes #1145.
This commit is contained in:
Camilla Löwy
2017-11-23 20:54:44 +01:00
parent fe9c7a01c5
commit 3169179de1
4 changed files with 270 additions and 257 deletions

View File

@@ -24,7 +24,7 @@ endif()
file(STRINGS "${source_path}" lines)
foreach(line ${lines})
if ("${line}" MATCHES "^[0-9a-fA-F].*$")
set(GLFW_GAMEPAD_MAPPINGS "${GLFW_GAMEPAD_MAPPINGS}\"${line}\\n\"\n")
set(GLFW_GAMEPAD_MAPPINGS "${GLFW_GAMEPAD_MAPPINGS}\"${line}\",\n")
endif()
endforeach()