Fix ESQLITE_USE_SYSTEM

This fixes the logic for setting the include directory for the sqlite
header file
This commit is contained in:
Connor Rigby
2019-04-19 08:17:27 -07:00
parent b3e158311f
commit dea7ba1a35
2 changed files with 4 additions and 4 deletions

View File

@@ -12,8 +12,8 @@ DrvLdFlags =
{NifSources, LdEnv, CFlagsExt} =
case os:getenv("ESQLITE_USE_SYSTEM") of
NotDefined when NotDefined == false; NotDefined == [] -> {NifStaticSources, [], []};
_Defined -> {NifSharedSources, [{"DRV_LDFLAGS", DrvLdFlags}], " -Ic_src/sqlite3"}
NotDefined when NotDefined == false; NotDefined == [] -> {NifStaticSources, [], " -Ic_src/sqlite3"};
_Defined -> {NifSharedSources, [{"DRV_LDFLAGS", DrvLdFlags}], []}
end.
CFlags =