瀏覽代碼

matplotplusplus: fix ninja build with debug mode on windows

star9029 1 年之前
父節點
當前提交
eb5cd65377
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      packages/m/matplotplusplus/xmake.lua

+ 4 - 1
packages/m/matplotplusplus/xmake.lua

@@ -60,8 +60,11 @@ package("matplotplusplus")
                 table.insert(configs, "-DCMAKE_DISABLE_FIND_PACKAGE_" .. config:upper() .. "=ON")
                 table.insert(configs, "-DCMAKE_DISABLE_FIND_PACKAGE_" .. config:upper() .. "=ON")
             end
             end
         end
         end
-        table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
+        table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
+        if package:is_plat("windows") then
+            table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=''")
+        end
         import("package.tools.cmake").install(package, configs)
         import("package.tools.cmake").install(package, configs)
     end)
     end)