]> granicus.if.org Git - graphviz/commitdiff
CMake: [nfc] uppercase 'dotlink' variable
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Feb 2022 03:55:01 +0000 (14:55 +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 ff0f67b6a361de2abf19fcff9ee52536bdfe50d1..6848feace6cb5bfe5a20d5d84298aee0f0b63cf6 100644 (file)
@@ -59,7 +59,7 @@ else()
   # ${CMAKE_CURRENT_BINARY_DIR}/dot is installed to ${BINARY_INSTALL_DIR}/dot.
   # There is a (small?) risk of dangling symlinks
   foreach(cmd_alias IN LISTS dot_aliases)
-    set(dotlink "${CMAKE_CURRENT_BINARY_DIR}/${cmd_alias}")
+    set(DOTLINK "${CMAKE_CURRENT_BINARY_DIR}/${cmd_alias}")
     add_custom_command(
       TARGET dot
       POST_BUILD
@@ -69,7 +69,7 @@ else()
       COMMENT "Linking $<TARGET_FILE_NAME:dot> as ${cmd_alias}"
     )
     install(
-      FILES ${dotlink}
+      FILES ${DOTLINK}
       DESTINATION ${BINARY_INSTALL_DIR}
     )
   endforeach()