Skip to content

Commit 2f795d3

Browse files
committed
- fully specify where to get the libraries from
1 parent b266632 commit 2f795d3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,14 @@ def build_cmake(self, extension):
264264
cmake_args = cmake_args + libsbml_args
265265

266266
if DEP_DIR:
267+
zlib = get_lib_full_path(os.path.join(DEP_DIR, 'lib'), 'zlib')
268+
if not zlib:
269+
zlib = get_lib_full_path(os.path.join(DEP_DIR, 'lib'), 'zdll')
267270
cmake_args.append('-DLIBSBML_DEPENDENCY_DIR=' + DEP_DIR)
268271
cmake_args.append('-DLIBEXPAT_INCLUDE_DIR=' + join(DEP_DIR, 'include'))
272+
cmake_args.append('-DLIBEXPAT_LIBRARY=' + get_lib_full_path(os.path.join(DEP_DIR, 'lib'), 'expat'))
273+
cmake_args.append('-DLIBZ_LIBRARY=' + zlib)
274+
cmake_args.append('-DLIBBZ_LIBRARY=' + get_lib_full_path(os.path.join(dep_inst_dir, 'lib'), 'bz2'))
269275

270276
if is_win_32:
271277
if DEP_DIR32:

0 commit comments

Comments
 (0)