Index: cmake-proxies/cmake-modules/dependencies/rapidjson.cmake
--- cmake-proxies/cmake-modules/dependencies/rapidjson.cmake.orig
+++ cmake-proxies/cmake-modules/dependencies/rapidjson.cmake
@@ -2,7 +2,9 @@
 
 if(NOT ${_OPT}use_rapidjson STREQUAL "off")
    if(NOT TARGET rapidjson::rapidjson)
-      if(TARGET rapidjson)
+      if(TARGET RapidJSON)
+         add_library( rapidjson::rapidjson ALIAS RapidJSON )
+      elseif(TARGET rapidjson)
          add_library( rapidjson::rapidjson ALIAS rapidjson )
       else()
          # At least on Arch RapidJSONConfig.cmake does not define a target at all
