Skip to content

Commit

Permalink
Merge branch '15-consider-zlib-include-dirs'
Browse files Browse the repository at this point in the history
* 15-consider-zlib-include-dirs:
  Fix "binascii" configure error happening when no zlib is found
  • Loading branch information
jcfr committed May 1, 2013
2 parents bc34b62 + 4c146d9 commit 616e6b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/extensions/CMakeLists.txt
Expand Up @@ -241,16 +241,20 @@ add_python_extension(_sha512 REQUIRES OPENSSL_NOT_FOUND SOURCES sha512module.c)
# Extensions that depend on other libraries
set(binascii_REQUIRES "")
set(binascii_DEFINITIONS "")
set(binascii_LIBRARIES "")
set(binascii_INCLUDEDIRS "")
if(ZLIB_LIBRARY)
list(APPEND binascii_REQUIRES ZLIB_INCLUDE_DIR)
list(APPEND binascii_DEFINITIONS USE_ZLIB_CRC32)
list(APPEND binascii_LIBRARIES ${ZLIB_LIBRARY})
list(APPEND binascii_INCLUDEDIRS ${ZLIB_INCLUDE_DIR})
endif()
add_python_extension(binascii
REQUIRES ${binascii_REQUIRES}
SOURCES binascii.c
DEFINITIONS ${binascii_DEFINITIONS}
LIBRARIES ${ZLIB_LIBRARY}
INCLUDEDIRS ${ZLIB_INCLUDE_DIR}
LIBRARIES ${binascii_LIBRARIES}
INCLUDEDIRS ${binascii_INCLUDEDIRS}
)
add_python_extension(_bsddb
REQUIRES DB_INCLUDE_PATH DB_LIBRARIES
Expand Down

0 comments on commit 616e6b3

Please sign in to comment.