SConstruct: find Libzip on Darwin
Add a `pkg-config` statement for Darwin in SConstruct to help scons find the Libzip includes. Patch from Homebrew. Fixes compile error with llvm-gcc. Fixes #274
This commit is contained in:
parent
7467e11147
commit
80a9317d8b
@ -90,6 +90,7 @@ if sys.platform == 'darwin': #Mac OS X
|
||||
boost_prefix = subprocess.check_output(["brew", "--prefix", "boost"]).strip()
|
||||
env.Append(CPPPATH = [boost_prefix+"/include"] )
|
||||
env.Append(LIBPATH = [boost_prefix+"/lib"] )
|
||||
env.ParseConfig('pkg-config --cflags --libs libzip')
|
||||
elif sys.platform.startswith("freebsd"):
|
||||
env.ParseConfig('pkg-config --cflags --libs protobuf')
|
||||
env.Append(CPPPATH = ['/usr/local/include', '/usr/local/include/libxml2'])
|
||||
|
Loading…
Reference in New Issue
Block a user