aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-11-08 17:16:43 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-11-09 13:07:16 +0100
commit07b14c8e2ed288dfca382719aeb26d544573f51a (patch)
treeb6ff6d8207952d078be1432a96023be61f50a741 /cmake
parent4b001f297ae29654b86eccd4dde72b2cc314ca01 (diff)
downloadrneovim-07b14c8e2ed288dfca382719aeb26d544573f51a.tar.gz
rneovim-07b14c8e2ed288dfca382719aeb26d544573f51a.tar.bz2
rneovim-07b14c8e2ed288dfca382719aeb26d544573f51a.zip
build: specify POST_BUILD when using add_custom_command
This is needed specifically for the second signature of add_custom_command, which appends an operation to an existing target. This will prevent the cmake warning CMP0175. Reference: https://cmake.org/cmake/help/latest/policy/CMP0175.html
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Util.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Util.cmake b/cmake/Util.cmake
index eb07bf07d5..8ca39e5f94 100644
--- a/cmake/Util.cmake
+++ b/cmake/Util.cmake
@@ -61,6 +61,7 @@ function(add_glob_target)
if(NOT ARG_COMMAND)
add_custom_target(${ARG_TARGET})
add_custom_command(TARGET ${ARG_TARGET}
+ POST_BUILD
COMMAND ${CMAKE_COMMAND} -E echo "${ARG_TARGET} SKIP: ${ARG_COMMAND} not found")
return()
endif()