aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2022-06-13 03:49:38 +0200
committerGitHub <noreply@github.com>2022-06-12 18:49:38 -0700
commitdd8b6094c03362cc60d627ce709a4a0f9825b86a (patch)
tree50f68793cc0cb70175f8e9a6bc7896b00585f3d0 /src
parente420cd6c67a0aad5b5dcb40748f733876e66a2c3 (diff)
downloadrneovim-dd8b6094c03362cc60d627ce709a4a0f9825b86a.tar.gz
rneovim-dd8b6094c03362cc60d627ce709a4a0f9825b86a.tar.bz2
rneovim-dd8b6094c03362cc60d627ce709a4a0f9825b86a.zip
build(lint): fix lintuncrustify #18945
Problem: lintuncrustify doesn't actually do anything. Solution: - Fix the parameters. - Fail correctly on nonzero result. followup to #18940
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nvim/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt
index 1970a68393..be24ad3fe0 100755
--- a/src/nvim/CMakeLists.txt
+++ b/src/nvim/CMakeLists.txt
@@ -808,9 +808,10 @@ def_cmd_target(lintuncrustify ${UNCRUSTIFY_PRG} UNCRUSTIFY_PRG false) # Non-fat
if(UNCRUSTIFY_PRG)
add_custom_command(OUTPUT lintuncrustify-cmd APPEND
COMMAND ${CMAKE_COMMAND}
- -DUNCRUSTIFY_PRG=${UNCRUSTIFY_PRG}
- -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}
- -DLINT_NVIM_SOURCES=${LINT_NVIM_SOURCES}
+ -D UNCRUSTIFY_PRG=${UNCRUSTIFY_PRG}
+ -D PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}
+ -D NVIM_SOURCES="${NVIM_SOURCES}"
+ -D NVIM_HEADERS="${NVIM_HEADERS}"
-P ${PROJECT_SOURCE_DIR}/cmake/RunUncrustify.cmake)
endif()