From a8bb2dc01f99a2866f586f6e1491a512ce9b3cfa Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Wed, 21 Nov 2018 21:53:40 -0600 Subject: Fix #7 - separate file searching from include dirs --- tests/tnimterop.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/tnimterop.nim b/tests/tnimterop.nim index 9c5db77..a05cecd 100644 --- a/tests/tnimterop.nim +++ b/tests/tnimterop.nim @@ -2,9 +2,10 @@ import nimterop/cimport cDebug() -cIncludeDir("include") -cCompile("test.c") -cImport("test.h") +cIncludeDir "include" +cAddSearchDir "include" +cCompile cSearchPath("test.c") +cImport cSearchPath "test.h" doAssert TEST_INT == 512 doAssert TEST_FLOAT == 5.12 -- cgit v1.2.3