-use find_package_handle_standard_args() in FindOpenAL (#9496)

Alex
This commit is contained in:
Alex Neundorf 2010-05-09 11:06:00 +02:00
parent dedbe6fd48
commit cdc484e4a6
1 changed files with 5 additions and 4 deletions

View File

@ -95,8 +95,9 @@ FIND_LIBRARY(OPENAL_LIBRARY
)
SET(OPENAL_FOUND "NO")
IF(OPENAL_LIBRARY AND OPENAL_INCLUDE_DIR)
SET(OPENAL_FOUND "YES")
ENDIF(OPENAL_LIBRARY AND OPENAL_INCLUDE_DIR)
# handle the QUIETLY and REQUIRED arguments and set OPENAL_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenAL DEFAULT_MSG OPENAL_LIBRARY OPENAL_INCLUDE_DIR)
MARK_AS_ADVANCED(OPENAL_LIBRARY OPENAL_INCLUDE_DIR)