Skip to content

Commit

Permalink
Look for cairo.dll on Windows if libcairo-2.dll is not found
Browse files Browse the repository at this point in the history
While typically the cairo dll is called `libcairo-2.dll`, there are some builds which call it `cairo.dll` (see for example https://github.com/preshing/cairo-windows). This causes problems for libraries like ggplotnim, which cannot just recommend users to download the stand-alone cairo library from the URL above because its dll is not called libcairo-2.dll.
  • Loading branch information
AngelEzquerra committed Feb 15, 2024
1 parent 0f3ac50 commit 5fc9b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cairo_pragma.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ when declared(use_pkg_config) or declared(use_pkg_config_static):
{.passl: gorge("pkg-config cairo --libs").}
else:
when defined(windows):
const LibCairo* = "libcairo-2.dll"
const LibCairo* = "(libcairo-2|cairo).dll"
elif defined(macosx):
const LibCairo* = "libcairo(|.2).dylib"
else:
Expand Down

0 comments on commit 5fc9b9d

Please sign in to comment.