diff --git a/AntTweakBar.nim b/AntTweakBar.nim index 4c7cb5f..0f78390 100644 --- a/AntTweakBar.nim +++ b/AntTweakBar.nim @@ -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".} diff --git a/AntTweakBar.nimble b/AntTweakBar.nimble index cd3cfe4..1743ab3 100644 --- a/AntTweakBar.nimble +++ b/AntTweakBar.nimble @@ -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"