diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-02-11 16:08:51 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-02-11 16:19:00 (GMT) |
commit | a6de8a58822a70182e58ead76a1b308e11350bff (patch) | |
tree | a2e6277bcf66d852676a4cb8d45db14dba1a3feb /Modules/FindSDL_image.cmake | |
parent | 677047dda0620fa675bcc1a8bacde5388ad954c3 (diff) | |
download | CMake-a6de8a58822a70182e58ead76a1b308e11350bff.zip CMake-a6de8a58822a70182e58ead76a1b308e11350bff.tar.gz CMake-a6de8a58822a70182e58ead76a1b308e11350bff.tar.bz2 |
FindSDL*: use FPHSA (#12467)
Diffstat (limited to 'Modules/FindSDL_image.cmake')
-rw-r--r-- | Modules/FindSDL_image.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/FindSDL_image.cmake b/Modules/FindSDL_image.cmake index 5a5f59b..9a130fa 100644 --- a/Modules/FindSDL_image.cmake +++ b/Modules/FindSDL_image.cmake @@ -68,8 +68,7 @@ FIND_LIBRARY(SDLIMAGE_LIBRARY /opt ) -SET(SDLIMAGE_FOUND "NO") -IF(SDLIMAGE_LIBRARY AND SDLIMAGE_INCLUDE_DIR) - SET(SDLIMAGE_FOUND "YES") -ENDIF(SDLIMAGE_LIBRARY AND SDLIMAGE_INCLUDE_DIR) +INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDLIMAGE + REQUIRED_VARS SDLIMAGE_LIBRARY SDLIMAGE_INCLUDE_DIR) |