diff options
author | Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> | 2015-09-15 20:50:51 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-09-15 20:50:51 +0100 |
commit | 4d9ce05bb4f0992d72ad5ce229301f1a78f31cb9 (patch) | |
tree | 06088ee8e32bd441c9ed760124e4070e1bbcd7fb | |
parent | fb28def18ceb2516c460c4bd5825d2dc656c7818 (diff) |
cmake: Use the FindWaffle.cmake script provided by Waffle itself.
-rw-r--r-- | cmake/FindWaffle.cmake | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/cmake/FindWaffle.cmake b/cmake/FindWaffle.cmake deleted file mode 100644 index c463004b..00000000 --- a/cmake/FindWaffle.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# - try to find Waffle include dirs and library - -if (ANDROID) - set (Android_root_path "$ENV{OUT}") - if (Android_root_path) - set (Waffle_INC_SEARCH_PATH "$ENV{OUT}/obj/include/waffle-1" - "$ENV{OUT}/obj/lib" - "$ENV{ANDROID_BUILD_TOP}/external/waffle" - ) - - set (Waffle_LIB_SEARCH_PATH "$ENV{OUT}/obj/lib") - endif () - - find_path (Waffle_INCLUDE_DIRS waffle.h - PATHS ${Waffle_INC_SEARCH_PATH} - DOC "The directory where waffle.h resides" - NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH - ) - - find_library (Waffle_LIBRARIES waffle-1 - PATHS ${Waffle_LIB_SEARCH_PATH} - DOC "The directory where libwaffle-1 resides" - NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH - ) -else () - find_package (PkgConfig) - if (PKG_CONFIG_FOUND) - pkg_search_module (Waffle waffle-1) - endif () -endif () - -include (FindPackageHandleStandardArgs) -find_package_handle_standard_args (Waffle DEFAULT_MSG Waffle_LIBRARIES Waffle_INCLUDE_DIRS) |