diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-02-11 17:08:51 +0100 |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-02-11 17:19:00 +0100 |
commit | a6de8a58822a70182e58ead76a1b308e11350bff (patch) | |
tree | a2e6277bcf66d852676a4cb8d45db14dba1a3feb /Modules/FindSDL_net.cmake | |
parent | 677047dda0620fa675bcc1a8bacde5388ad954c3 (diff) | |
download | cmake-a6de8a58822a70182e58ead76a1b308e11350bff.tar.gz |
FindSDL*: use FPHSA (#12467)
Diffstat (limited to 'Modules/FindSDL_net.cmake')
-rw-r--r-- | Modules/FindSDL_net.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Modules/FindSDL_net.cmake b/Modules/FindSDL_net.cmake index 730b129f0a..b5ada54b92 100644 --- a/Modules/FindSDL_net.cmake +++ b/Modules/FindSDL_net.cmake @@ -67,8 +67,7 @@ FIND_LIBRARY(SDLNET_LIBRARY /opt ) -SET(SDLNET_FOUND "NO") -IF(SDLNET_LIBRARY AND SDLNET_INCLUDE_DIR) - SET(SDLNET_FOUND "YES") -ENDIF(SDLNET_LIBRARY AND SDLNET_INCLUDE_DIR) +INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(SDLNET + REQUIRED_VARS SDLNET_LIBRARY SDLNET_INCLUDE_DIR) |