aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Noda <sys9kdr@users.noreply.github.com>2023-12-17 21:55:15 +0900
committerGitHub <noreply@github.com>2023-12-17 13:55:15 +0100
commitf0eb3ca9163ad10753fbb75558b900a539f76e0d (patch)
treedaaaabd9ab5bc8857998fa4306ca5c4f917401da
parent5a2536de0c4beae4eba50a0d2868983c1690ecc7 (diff)
downloadrneovim-f0eb3ca9163ad10753fbb75558b900a539f76e0d.tar.gz
rneovim-f0eb3ca9163ad10753fbb75558b900a539f76e0d.tar.bz2
rneovim-f0eb3ca9163ad10753fbb75558b900a539f76e0d.zip
build: eliminate semicolons from --version string
Refactor the --version string to remove semicolons. Although semicolons are present in LINK_OPTIONS, they are not actually included during compilation.
-rw-r--r--cmake.config/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake.config/CMakeLists.txt b/cmake.config/CMakeLists.txt
index 3e19a3271f..b855a98caa 100644
--- a/cmake.config/CMakeLists.txt
+++ b/cmake.config/CMakeLists.txt
@@ -173,6 +173,7 @@ append_target_expression(PROPERTY COMPILE_OPTIONS)
append_target_expression(PROPERTY LINK_OPTIONS)
append_target_expression(PREFIX "-D" PROPERTY COMPILE_DEFINITIONS)
append_target_expression(PREFIX "-I" PROPERTY INCLUDE_DIRECTORIES)
+string(REPLACE ";" " " VERSION_STRING "${VERSION_STRING}") # Remove ; from LINK_FLAGS/LINK_OPTIONS
string(REPLACE " " " " VERSION_STRING "${VERSION_STRING}") # Remove duplicate whitespace
configure_file(versiondef.h.in auto/versiondef.h.gen)