Browse Source

matplotplusplus: fix ninja build with debug mode on windows

star9029 1 year ago
parent
commit
eb5cd65377
1 changed files with 4 additions and 1 deletions
  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")
             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"))
+        if package:is_plat("windows") then
+            table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=''")
+        end
         import("package.tools.cmake").install(package, configs)
     end)