Skip to content

Commit 261a895

Browse files
committed
fixed: workflow
1 parent 9275e62 commit 261a895

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/imguin/cimgui.nim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,11 @@ else: # Use generated header by Futark in your programs.
9191
# for glfw3
9292
when true:
9393
# Use GLFW of glfw-4|3.x.x package
94-
const dirs = staticExec("nimble path glfw").strip.split("\n")
95-
{.passC:"-I" & joinPath(dirs[0],"glfw","include").replace("\\", "/").} # dirs[0]: Select max hash version: TODO
94+
when defined(windows):
95+
const dirs = staticExec("nimble path glfw").strip.split("\n")
96+
{.passC:"-I" & joinPath(dirs[0],"glfw","include").replace("\\", "/").} # dirs[0]: Select max hash version: TODO
97+
when defined(linux):
98+
{.passC:"-I/usr/include".replace("\\", "/").} # Debian families
9699
else:
97100
# Use GLFW of nimgl package
98101
const dirs = staticExec("nimble path nimgl").strip.split("\n")

0 commit comments

Comments
 (0)