summaryrefslogtreecommitdiff
path: root/media-sound/audacity/files/audacity-3.7.7-fix_rapidjson.patch
blob: 32a12ac50978ad5155bb8fc2a0c8025997ad44a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Check new target RapidJSON added by rapidjson (commit b1c0c28)
see https://bugs.gentoo.org/974359
--- a/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake
+++ b/cmake-proxies/cmake-modules/dependencies/rapidjson.cmake
@@ -2,7 +2,10 @@
 
 if(NOT ${_OPT}use_rapidjson STREQUAL "off")
    if(NOT TARGET rapidjson::rapidjson)
-      if(TARGET rapidjson)
+      if(TARGET RapidJSON)
+         # New 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