summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-09-14 16:51:37 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-09-14 16:51:37 +0100
commitf75d0ccc7275be86c2fae58c599e23af2f27db96 (patch)
treee9488d53a19f7efbbdb3af76931cfde13c61e521 /cmake
parent5a491443a5008f58554f21e9c6f7ec1e66707a73 (diff)
cmake: Simplify FindWaffle.cmake.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindWaffle.cmake14
1 files changed, 2 insertions, 12 deletions
diff --git a/cmake/FindWaffle.cmake b/cmake/FindWaffle.cmake
index 93836c65..c463004b 100644
--- a/cmake/FindWaffle.cmake
+++ b/cmake/FindWaffle.cmake
@@ -22,10 +22,6 @@ if (ANDROID)
DOC "The directory where libwaffle-1 resides"
NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH
)
-
- if (Waffle_INCLUDE_DIRS AND Waffle_LIBRARIES)
- set (Waffle_FOUND 1)
- endif (Waffle_INCLUDE_DIRS AND Waffle_LIBRARIES)
else ()
find_package (PkgConfig)
if (PKG_CONFIG_FOUND)
@@ -33,11 +29,5 @@ else ()
endif ()
endif ()
-mark_as_advanced (
- Waffle_INCLUDE_DIRS
- Waffle_LIBRARIES
-)
-
-mark_as_advanced (
- Waffle_FOUND
-)
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (Waffle DEFAULT_MSG Waffle_LIBRARIES Waffle_INCLUDE_DIRS)