[Piglit] [PATCH 12/14] cmake/FindWaffle: Fix for usage outside of /usr/share/cmake/Modules

groleo at gmail.com groleo at gmail.com
Fri Nov 16 04:46:57 PST 2012


From: Adrian Marius Negreanu <adrian.m.negreanu at intel.com>

If a project imported FindWaffle.cmake, then the module failed to work
because it attempted to include FindPackageHandleStandardArgs.cmake from
the current directory rather than /usr/share/cmake/Modules.

Signed-off-by: Adrian Marius Negreanu <adrian.m.negreanu at intel.com>
[chadv: Write commit message. Split into two patches.]
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 cmake/Modules/FindWaffle.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/Modules/FindWaffle.cmake b/cmake/Modules/FindWaffle.cmake
index 1f8b22b..972bdfe 100644
--- a/cmake/Modules/FindWaffle.cmake
+++ b/cmake/Modules/FindWaffle.cmake
@@ -58,7 +58,7 @@ endif()
 
 # handle the 'QUIETLY' and 'REQUIRED' arguments and
 # set 'WAFFLE_FOUND' to TRUE if all listed variables are TRUE
-include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
+include(FindPackageHandleStandardArgs)
 find_package_handle_standard_args(Waffle
     REQUIRED_VARS WAFFLE_LIBRARIES WAFFLE_INCLUDE_DIRS
     VERSION_VAR WAFFLE_VERSION_STRING
-- 
1.8.0



More information about the Piglit mailing list