]> granicus.if.org Git - graphviz/commitdiff
CMake: [nfc] fix indentation in cmd/tools
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 14 Feb 2022 04:43:11 +0000 (15:43 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 15 Feb 2022 23:20:19 +0000 (10:20 +1100)
It is not clear to me why cmake-lint was not complaining about this. However, an
upcoming commit exposes that this indentation was not compliant.

cmd/tools/CMakeLists.txt

index 4432ea02d486a7aee9efd446d3c3d817c1ede57f..f8ec075c8db65430ab5b593b235717158c313d6d 100644 (file)
@@ -153,31 +153,31 @@ install(TARGETS gv2gml RUNTIME DESTINATION ${BINARY_INSTALL_DIR})
 # ================================= graphml2gv =================================
 if(EXPAT_FOUND)
 
-add_executable(graphml2gv
-  # Source files
-  graphml2gv.c
-)
+  add_executable(graphml2gv
+    # Source files
+    graphml2gv.c
+  )
 
-target_include_directories(graphml2gv PRIVATE
-  ${GRAPHVIZ_LIB_DIR}
-  ${CMAKE_CURRENT_SOURCE_DIR}
-  ${CMAKE_CURRENT_BINARY_DIR}
-  ${GRAPHVIZ_LIB_DIR}/cdt
-  ${GRAPHVIZ_LIB_DIR}/cgraph
-  ${GRAPHVIZ_LIB_DIR}/common
-  ${GRAPHVIZ_LIB_DIR}/gvc
-  ${GRAPHVIZ_LIB_DIR}/pack
-  ${GRAPHVIZ_LIB_DIR}/pathplan
-  ${EXPAT_INCLUDE_DIRS}
-  ${GETOPT_INCLUDE_DIRS}
-)
+  target_include_directories(graphml2gv PRIVATE
+    ${GRAPHVIZ_LIB_DIR}
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${CMAKE_CURRENT_BINARY_DIR}
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+    ${GRAPHVIZ_LIB_DIR}/common
+    ${GRAPHVIZ_LIB_DIR}/gvc
+    ${GRAPHVIZ_LIB_DIR}/pack
+    ${GRAPHVIZ_LIB_DIR}/pathplan
+    ${EXPAT_INCLUDE_DIRS}
+    ${GETOPT_INCLUDE_DIRS}
+  )
 
-target_link_libraries(graphml2gv
-  cgraph
-  ${EXPAT_LIBRARIES}
-)
+  target_link_libraries(graphml2gv
+    cgraph
+    ${EXPAT_LIBRARIES}
+  )
 
-tool_defaults(graphml2gv)
+  tool_defaults(graphml2gv)
 
 endif()
 
@@ -275,35 +275,35 @@ tool_defaults(gvpack)
 # =================================== gxl2gv ===================================
 if(EXPAT_FOUND)
 
-add_executable(gxl2gv
-  # Source files
-  cvtgxl.c
-  gv2gxl.c
-  gxl2gv.c
-)
+  add_executable(gxl2gv
+    # Source files
+    cvtgxl.c
+    gv2gxl.c
+    gxl2gv.c
+  )
 
-target_include_directories(gxl2gv PRIVATE
-  ${GRAPHVIZ_LIB_DIR}
-  ${CMAKE_CURRENT_SOURCE_DIR}
-  ${CMAKE_CURRENT_BINARY_DIR}
-  ${GRAPHVIZ_LIB_DIR}/cdt
-  ${GRAPHVIZ_LIB_DIR}/cgraph
-  ${GRAPHVIZ_LIB_DIR}/common
-  ${GRAPHVIZ_LIB_DIR}/gvc
-  ${GRAPHVIZ_LIB_DIR}/pack
-  ${GRAPHVIZ_LIB_DIR}/pathplan
-  ${EXPAT_INCLUDE_DIRS}
-  ${GETOPT_INCLUDE_DIRS}
-)
+  target_include_directories(gxl2gv PRIVATE
+    ${GRAPHVIZ_LIB_DIR}
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${CMAKE_CURRENT_BINARY_DIR}
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+    ${GRAPHVIZ_LIB_DIR}/common
+    ${GRAPHVIZ_LIB_DIR}/gvc
+    ${GRAPHVIZ_LIB_DIR}/pack
+    ${GRAPHVIZ_LIB_DIR}/pathplan
+    ${EXPAT_INCLUDE_DIRS}
+    ${GETOPT_INCLUDE_DIRS}
+  )
 
-target_link_libraries(gxl2gv
-  cgraph
-  gvc
-  ingraphs
-  ${EXPAT_LIBRARIES}
-)
+  target_link_libraries(gxl2gv
+    cgraph
+    gvc
+    ingraphs
+    ${EXPAT_LIBRARIES}
+  )
 
-tool_defaults(gxl2gv)
+  tool_defaults(gxl2gv)
 
 endif()