mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
fix(build): strip trailing newline from variable (#19084)
Problem: #19029 added a new fallback that sets `$MACOSX_DEPLOYMENT_TARGET` to the local macOS version via `sw_vers`. However, the output included a newline, which broke the generated Ninja build script. Solution: use `OUTPUT_STRIP_TRAILING_WHITESPACE` for `execute_process`.
This commit is contained in:
parent
059107f424
commit
b0eedceab4
4
third-party/cmake/BuildLuajit.cmake
vendored
4
third-party/cmake/BuildLuajit.cmake
vendored
@ -64,7 +64,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
if(CMAKE_OSX_DEPLOYMENT_TARGET)
|
||||
set(DEPLOYMENT_TARGET "MACOSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||
else()
|
||||
execute_process(COMMAND sw_vers -productVersion OUTPUT_VARIABLE MACOS_VERSION)
|
||||
execute_process(COMMAND sw_vers -productVersion
|
||||
OUTPUT_VARIABLE MACOS_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
set(DEPLOYMENT_TARGET "MACOSX_DEPLOYMENT_TARGET=${MACOS_VERSION}")
|
||||
endif()
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user