Commit 44d145fe authored by Ondrej Vysocky's avatar Ondrej Vysocky
Browse files

FIX wscript - add paths only when requested #60

parent af82eaa0
......@@ -7,16 +7,18 @@ def configure(ctx):
if ctx.options.flags:
ctx.env.append_unique("CXXFLAGS", ctx.options.flags.split( ))
ctx.env.append_unique("CXXFLAGS", [ "-std=c++11", "-fPIC"]) #no openMP
for path in ctx.options.includes.split(' '):
if len(path) > 2 and path[0:2] == "-I":
ctx.env.append_unique("CXXFLAGS",path)
else:
ctx.env.append_unique("CXXFLAGS","-I"+path)
for path in ctx.options.libpaths.split(' '):
if len(path) > 2 and path[0:2] == "-L":
ctx.env.append_unique("LINKFLAGS", path)
else:
ctx.env.append_unique("LINKFLAGS", "-L"+path)
if (ctx.options.includes):
for path in ctx.options.includes.split(' '):
if len(path) > 2 and path[0:2] == "-I":
ctx.env.append_unique("CXXFLAGS",path)
else:
ctx.env.append_unique("CXXFLAGS","-I"+path)
if (ctx.options.libpaths):
for path in ctx.options.libpaths.split(' '):
if len(path) > 2 and path[0:2] == "-L":
ctx.env.append_unique("LINKFLAGS", path)
else:
ctx.env.append_unique("LINKFLAGS", "-L"+path)
if ctx.options.withgcc:
if not ctx.options.noopenmp:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment