summaryrefslogtreecommitdiffstats
path: root/Modules/FindSDL_mixer.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-02-11 16:08:51 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-02-11 16:19:00 (GMT)
commita6de8a58822a70182e58ead76a1b308e11350bff (patch)
treea2e6277bcf66d852676a4cb8d45db14dba1a3feb /Modules/FindSDL_mixer.cmake
parent677047dda0620fa675bcc1a8bacde5388ad954c3 (diff)
downloadCMake-a6de8a58822a70182e58ead76a1b308e11350bff.zip
CMake-a6de8a58822a70182e58ead76a1b308e11350bff.tar.gz
CMake-a6de8a58822a70182e58ead76a1b308e11350bff.tar.bz2
FindSDL*: use FPHSA (#12467)
Diffstat (limited to 'Modules/FindSDL_mixer.cmake')
-rw-r--r--Modules/FindSDL_mixer.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/FindSDL_mixer.cmake b/Modules/FindSDL_mixer.cmake
index e2b2294..ce1ae9e 100644
--- a/Modules/FindSDL_mixer.cmake
+++ b/Modules/FindSDL_mixer.cmake
@@ -68,8 +68,7 @@ FIND_LIBRARY(SDLMIXER_LIBRARY
/opt
)
-SET(SDLMIXER_FOUND "NO")
-IF(SDLMIXER_LIBRARY AND SDLMIXER_INCLUDE_DIR)
- SET(SDLMIXER_FOUND "YES")
-ENDIF(SDLMIXER_LIBRARY AND SDLMIXER_INCLUDE_DIR)
+INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDLMIXER
+ REQUIRED_VARS SDLMIXER_LIBRARY SDLMIXER_INCLUDE_DIR)