at master 18 lines 813 B view raw
1diff --git a/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake b/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake 2index ba95962..66a96a8 100644 3--- a/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake 4+++ b/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake 5@@ -2,8 +2,11 @@ 6 7 if(NOT ${_OPT}use_rapidjson STREQUAL "off") 8 if(NOT TARGET rapidjson::rapidjson) 9- if(TARGET rapidjson) 10- add_library( rapidjson::rapidjson ALIAS rapidjson ) 11+ if(TARGET RapidJSON) 12+ if(NOT TARGET rapidjson) 13+ add_library(rapidjson ALIAS RapidJSON) 14+ endif() 15+ add_library( rapidjson::rapidjson ALIAS RapidJSON ) 16 else() 17 # At least on Arch RapidJSONConfig.cmake does not define a target at all 18 # so we have to do it ourselves