diff options
author | Alex Neundorf <neundorf@kde.org> | 2010-05-09 09:06:00 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2010-05-09 09:07:33 (GMT) |
commit | cdc484e4a6613555b6c4d097a8bfef27a533bfe3 (patch) | |
tree | c54a015ab4b9dbab30216895a084008419e7eebe | |
parent | dedbe6fd48eb57323aa0603dc570d94bc46d08a0 (diff) | |
download | CMake-cdc484e4a6613555b6c4d097a8bfef27a533bfe3.zip CMake-cdc484e4a6613555b6c4d097a8bfef27a533bfe3.tar.gz CMake-cdc484e4a6613555b6c4d097a8bfef27a533bfe3.tar.bz2 |
-use find_package_handle_standard_args() in FindOpenAL (#9496)
Alex
-rw-r--r-- | Modules/FindOpenAL.cmake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/FindOpenAL.cmake b/Modules/FindOpenAL.cmake index b9b7078..f42a69a 100644 --- a/Modules/FindOpenAL.cmake +++ b/Modules/FindOpenAL.cmake @@ -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) |