Browse Source

fix link order (#1610)

ruki 2 years ago
parent
commit
d52551c039
1 changed files with 8 additions and 0 deletions
  1. 8 0
      packages/d/dynareadout/xmake.lua

+ 8 - 0
packages/d/dynareadout/xmake.lua

@@ -11,6 +11,14 @@ package("dynareadout")
 
     add_configs("cpp", {description = "Build the C++ bindings", default = true, type = "boolean"})
 
+    on_load(function (package)
+        if package:config("cpp") then
+            package:add("links", "d3plot_cpp", "binout_cpp", "binout", "d3plot")
+        else
+            package:add("links", "binout", "d3plot")
+        end
+    end)
+
     on_install("windows", "linux", "macosx", "mingw", function (package)
         local configs = {}
         configs.build_test = "n"