]> granicus.if.org Git - graphviz/commitdiff
CMake: [nfc] uppercase 'create_test' macro
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 1 Feb 2022 03:23:54 +0000 (14:23 +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 `[0-9A-Z_]+`.

tests/CMakeLists.txt

index ad7b739f1542219c9658f68288f0138ff208b96c..3a45ce03d5178b38682681145bd54ea14d1feb14 100644 (file)
@@ -40,7 +40,7 @@ target_link_libraries(test_common PUBLIC
   gvc++
 )
 
-macro(create_test testname)
+macro(CREATE_TEST testname)
   add_executable(test_${testname} test_${testname}.cpp)
   set_target_properties(test_${testname} PROPERTIES CXX_STANDARD 20)
   set_target_properties(test_${testname} PROPERTIES CXX_STANDARD_REQUIRED ON)
@@ -59,9 +59,9 @@ macro(create_test testname)
   )
 endmacro()
 
-create_test(simple)
-create_test(AGraph_construction)
-create_test(GVContext_construction)
-create_test(GVLayout_construction)
-create_test(GVLayout_render)
-create_test(GVContext_render_svg)
+CREATE_TEST(simple)
+CREATE_TEST(AGraph_construction)
+CREATE_TEST(GVContext_construction)
+CREATE_TEST(GVLayout_construction)
+CREATE_TEST(GVLayout_render)
+CREATE_TEST(GVContext_render_svg)