]> granicus.if.org Git - graphviz/commitdiff
CMake: [nfc] uppercase 'Svgpp_*' variables
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Feb 2022 01:05:53 +0000 (12:05 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Feb 2022 04:28:49 +0000 (15:28 +1100)
Upcoming changes that introduce `cmake-format` checks complain that these
identifiers do not comply with `[A-Z][0-9A-Z_]+|_[0-9a-z_]+`.

cmake/FindSVGPP.cmake [new file with mode: 0644]
cmake/FindSvgpp.cmake [deleted file]
tests/CMakeLists.txt

diff --git a/cmake/FindSVGPP.cmake b/cmake/FindSVGPP.cmake
new file mode 100644 (file)
index 0000000..bc49299
--- /dev/null
@@ -0,0 +1,6 @@
+find_path(SVGPP_INCLUDE_DIR svgpp/svgpp.hpp)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(SVGPP DEFAULT_MSG SVGPP_INCLUDE_DIR)
+
+set(SVGPP_INCLUDE_DIRS ${SVGPP_INCLUDE_DIR})
diff --git a/cmake/FindSvgpp.cmake b/cmake/FindSvgpp.cmake
deleted file mode 100644 (file)
index 94c8246..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-find_path(Svgpp_INCLUDE_DIR svgpp/svgpp.hpp)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(Svgpp DEFAULT_MSG Svgpp_INCLUDE_DIR)
-
-set(Svgpp_INCLUDE_DIRS ${Svgpp_INCLUDE_DIR})
index 570e97897b13d86ebbd09f060a1b9f2066d4d119..cf41139544bf1fc5424ea73f4d502956afc61dc3 100644 (file)
@@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 3.12 FATAL_ERROR)
 find_package(Boost REQUIRED)
 find_package(Catch2 REQUIRED)
 find_package(RAPIDXML REQUIRED)
-find_package(Svgpp REQUIRED)
+find_package(SVGPP REQUIRED)
 
 enable_testing()
 
@@ -26,7 +26,7 @@ target_include_directories(test_common PRIVATE
     ${Boost_INCLUDE_DIRS}
     ${GRAPHVIZ_LIB_DIR}
     ${RAPIDXML_INCLUDE_DIRS}
-    ${Svgpp_INCLUDE_DIRS}
+    ${SVGPP_INCLUDE_DIRS}
 )
 target_link_libraries(test_common PUBLIC Catch2::Catch2)
 target_link_libraries(test_common PUBLIC