diff options
author | Enan Ajmain <3nan.ajmain@gmail.com> | 2023-02-14 23:58:38 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 18:58:38 +0100 |
commit | b4a92309f8f5ee4e579cee72ef352451a60733b8 (patch) | |
tree | 8ed037f0f7a79d15a3d9a97dbea00c0807bfb9de | |
parent | 9a9a4d38a8091eeb1b1acee1c086313d97c4fd8a (diff) | |
download | rneovim-b4a92309f8f5ee4e579cee72ef352451a60733b8.tar.gz rneovim-b4a92309f8f5ee4e579cee72ef352451a60733b8.tar.bz2 rneovim-b4a92309f8f5ee4e579cee72ef352451a60733b8.zip |
ci: print DLL copy messages only in CI environment (#22260)
In Windows, library DLL's are copied in the building process, and a message for each copy is printed. This is useful to have in the log of CI, but annoying to see when you're building and rebuilding nvim constantly. Work around this issue by only enabling the messages on CI.
-rw-r--r-- | cmake/WindowsDllCopy.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/WindowsDllCopy.cmake b/cmake/WindowsDllCopy.cmake index c07dc51b8a..b51e66e5cc 100644 --- a/cmake/WindowsDllCopy.cmake +++ b/cmake/WindowsDllCopy.cmake @@ -23,8 +23,9 @@ foreach(DLL_NAME ${DLLS}) message(FATAL_ERROR "Unable to find dependency ${DLL_NAME}") endif() - message("Copying ${DLL_NAME} to ${DST}") + if($ENV{CI} MATCHES "true") + message("Copying ${DLL_NAME} to ${DST}") + endif() execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${DLL_PATH} ${DST}) unset(DLL_PATH CACHE) endforeach() - |