]> granicus.if.org Git - graphviz/commitdiff
CMake: [nfc] uppercase 'dotcopy' variable
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Feb 2022 03:54:13 +0000 (14:54 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Feb 2022 04:29:03 +0000 (15:29 +1100)
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

index 00006fb1593a48346a3150250f3419d27a164125..ff0f67b6a361de2abf19fcff9ee52536bdfe50d1 100644 (file)
@@ -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 $<TARGET_FILE:dot> ${dotcopy}
-      COMMENT "Copying $<TARGET_FILE:dot> to ${dotcopy}"
+      COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:dot> ${DOTCOPY}
+      COMMENT "Copying $<TARGET_FILE:dot> to ${DOTCOPY}"
     )
     install(
-      PROGRAMS ${dotcopy}
+      PROGRAMS ${DOTCOPY}
       DESTINATION ${BINARY_INSTALL_DIR}
     )
   endforeach()