Skip to content

Commit

Permalink
matplotplusplus: fix ninja build with debug mode on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Jul 16, 2024
1 parent 8f0f029 commit eb5cd65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/m/matplotplusplus/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit eb5cd65

Please sign in to comment.