use hifi_library_search_hints() macro

This commit is contained in:
Andrew Meadows 2015-01-16 13:20:58 -08:00
parent 54a6a0a27c
commit a293c61c05

View file

@ -30,13 +30,16 @@
# (To distribute this file outside of CMake, substitute the full # (To distribute this file outside of CMake, substitute the full
# License text for the above reference.) # License text for the above reference.)
include("${MACRO_DIR}/HifiLibrarySearchHints.cmake")
hifi_library_search_hints("bullet")
macro(_FIND_BULLET_LIBRARY _var) macro(_FIND_BULLET_LIBRARY _var)
find_library(${_var} find_library(${_var}
NAMES NAMES
${ARGN} ${ARGN}
HINTS HINTS
$ENV{HIFI_LIB_DIR}/bullet ${BULLET_SEARCH_DIRS}
$ENV{BULLET_ROOT_DIR}
${BULLET_ROOT} ${BULLET_ROOT}
${BULLET_ROOT}/lib/Release ${BULLET_ROOT}/lib/Release
${BULLET_ROOT}/lib/Debug ${BULLET_ROOT}/lib/Debug
@ -58,8 +61,7 @@ endmacro()
find_path(BULLET_INCLUDE_DIR NAMES btBulletCollisionCommon.h find_path(BULLET_INCLUDE_DIR NAMES btBulletCollisionCommon.h
HINTS HINTS
$ENV{HIFI_LIB_DIR}/bullet ${BULLET_SEARCH_DIRS}
$ENV{BULLET_ROOT_DIR}
${BULLET_ROOT}/include ${BULLET_ROOT}/include
${BULLET_ROOT}/src ${BULLET_ROOT}/src
PATH_SUFFIXES bullet PATH_SUFFIXES bullet