From 3cfe3ce759c5b7ab37be5ccc395de7d3593e6a25 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 1 Feb 2022 14:54:13 +1100 Subject: [PATCH] CMake: [nfc] uppercase 'dotcopy' variable Upcoming changes that introduce `cmake-format` checks complain that this identifier does not comply with `[A-Z][0-9A-Z_]+|_[0-9a-z_]+` --- cmd/dot/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/dot/CMakeLists.txt b/cmd/dot/CMakeLists.txt index 00006fb15..ff0f67b6a 100644 --- a/cmd/dot/CMakeLists.txt +++ b/cmd/dot/CMakeLists.txt @@ -38,16 +38,16 @@ list(APPEND dot_aliases circo fdp neato osage patchwork sfdp twopi) if(WIN32 OR CYGWIN) # Copy dot executable to each alias name then install copies to bindir foreach(cmd_alias IN LISTS dot_aliases) - set(dotcopy + set(DOTCOPY "${CMAKE_CURRENT_BINARY_DIR}/${cmd_alias}${CMAKE_EXECUTABLE_SUFFIX}") add_custom_command( TARGET dot POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy $ ${dotcopy} - COMMENT "Copying $ to ${dotcopy}" + COMMAND ${CMAKE_COMMAND} -E copy $ ${DOTCOPY} + COMMENT "Copying $ to ${DOTCOPY}" ) install( - PROGRAMS ${dotcopy} + PROGRAMS ${DOTCOPY} DESTINATION ${BINARY_INSTALL_DIR} ) endforeach() -- 2.40.0