fix ZLIB dll find, bullet check

This commit is contained in:
Stephen Birarda 2015-02-19 15:22:37 -08:00
parent c3b9198ec3
commit 63d4538b76
2 changed files with 3 additions and 2 deletions

View file

@ -48,7 +48,7 @@ elseif (WIN32)
set(BULLET_LIB_EXT "lib")
endif ()
if (DEFINED SHARED_LIB_EXT)
if (DEFINED BULLET_LIB_EXT)
set(${EXTERNAL_NAME_UPPER}_DYNAMICS_LIBRARY_RELEASE ${BULLET_LIB_DIR}/${LIB_PREFIX}BulletDynamics.${BULLET_LIB_EXT} CACHE TYPE "Bullet dynamics release library location")
set(${EXTERNAL_NAME_UPPER}_DYNAMICS_LIBRARY_DEBUG NOTFOUND CACHE TYPE "Bullet dynamics debug library location")

View file

@ -135,10 +135,11 @@ if(ZLIB_INCLUDE_DIR AND EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
set(ZLIB_PATCH_VERSION "${ZLIB_VERSION_PATCH}")
endif()
set(ZLIB_REQUIREMENTS ZLIB_LIBRARY ZLIB_INCLUDE_DIR VERSION_VAR ZLIB_VERSION_STRING)
set(ZLIB_REQUIREMENTS ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
if (WIN32)
list(APPEND ZLIB_REQUIREMENTS ZLIB_DLL_PATH)
endif ()
list(APPEND ZLIB_REQUIREMENTS VERSION_VAR ZLIB_VERSION_STRING)
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
# all listed variables are TRUE