From: Matthew Fernandez Date: Tue, 1 Feb 2022 03:54:13 +0000 (+1100) Subject: CMake: [nfc] uppercase 'dotcopy' variable X-Git-Tag: 3.0.0~49^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cfe3ce759c5b7ab37be5ccc395de7d3593e6a25;p=graphviz 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_]+` --- 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()