]> granicus.if.org Git - graphviz/commitdiff
CMake: [nfc] uppercase 'RapidXml_*' variables
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 31 Jan 2022 12:00:10 +0000 (23:00 +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/FindRAPIDXML.cmake [new file with mode: 0644]
cmake/FindRapidXml.cmake [deleted file]
tests/CMakeLists.txt

diff --git a/cmake/FindRAPIDXML.cmake b/cmake/FindRAPIDXML.cmake
new file mode 100644 (file)
index 0000000..7b99e42
--- /dev/null
@@ -0,0 +1,6 @@
+find_path(RAPIDXML_INCLUDE_DIR rapidxml_ns/rapidxml_ns.hpp)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(RAPIDXML DEFAULT_MSG RAPIDXML_INCLUDE_DIR)
+
+set(RAPIDXML_INCLUDE_DIRS ${RAPIDXML_INCLUDE_DIR})
diff --git a/cmake/FindRapidXml.cmake b/cmake/FindRapidXml.cmake
deleted file mode 100644 (file)
index ae6866f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-find_path(RapidXml_INCLUDE_DIR rapidxml_ns/rapidxml_ns.hpp)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(RapidXml DEFAULT_MSG RapidXml_INCLUDE_DIR)
-
-set(RapidXml_INCLUDE_DIRS ${RapidXml_INCLUDE_DIR})
index 093c199b975e1b08d1b87c2c650996ed8e39be28..570e97897b13d86ebbd09f060a1b9f2066d4d119 100644 (file)
@@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.12 FATAL_ERROR)
 
 find_package(Boost REQUIRED)
 find_package(Catch2 REQUIRED)
-find_package(RapidXml REQUIRED)
+find_package(RAPIDXML REQUIRED)
 find_package(Svgpp REQUIRED)
 
 enable_testing()
@@ -25,7 +25,7 @@ set_target_properties(test_common PROPERTIES CXX_STANDARD_REQUIRED ON)
 target_include_directories(test_common PRIVATE
     ${Boost_INCLUDE_DIRS}
     ${GRAPHVIZ_LIB_DIR}
-    ${RapidXml_INCLUDE_DIRS}
+    ${RAPIDXML_INCLUDE_DIRS}
     ${Svgpp_INCLUDE_DIRS}
 )
 target_link_libraries(test_common PUBLIC Catch2::Catch2)