Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
krux02 committed Aug 7, 2018
1 parent 827cbca commit 9844876
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 10 additions & 12 deletions AntTweakBar.nim
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,16 @@

const TW_VERSION* = 116

const antTweakBarPath =
when not defined(antTweakBarNoNimble):
proc getAntTweakBarPath(): string {.compileTime.} =
"."
else:
from strutils import strip, splitLines

proc getAntTweakBarPath(): string {.compileTime.} =
for line in splitLines(staticExec("nimble path AntTweakBar")):
# get the last line and avoid all Hints and Warnings sont to stdout
result = line
result = strip(result)
when defined(antTweakBarNoNimble):
proc getAntTweakBarPath(): string {.compileTime.} =
"."
else:
from strutils import strip, splitLines
proc getAntTweakBarPath(): string {.compileTime.} =
for line in splitLines(staticExec("nimble path AntTweakBar")):
# get the last line and avoid all Hints and Warnings sont to stdout
result = line
result = strip(result)

{.passC: "-I" & getAntTweakBarPath() & "/cAntTweakBar/include" .}
{.passC: "-O3 -Wall -fPIC -fno-strict-aliasing -D__PLACEMENT_NEW_INLINE".}
Expand Down
2 changes: 1 addition & 1 deletion AntTweakBar.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.0.1"
version = "1.0.2"
author = "Arne Döring"
description = "nim wrapper around the AntTweakBar c library"
license = "MIT"
Expand Down

0 comments on commit 9844876

Please sign in to comment.