Skip to content

Commit

Permalink
ci: print DLL copy messages only in CI environment (neovim#22260)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
3N4N authored Feb 14, 2023
1 parent 9a9a4d3 commit b4a9230
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/WindowsDllCopy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit b4a9230

Please sign in to comment.