From 8ebf74b02fe936888f7b3af59dd983405bef9cf7 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sat, 3 Nov 2012 21:35:44 +0100 Subject: Find* (and some other): use ${CMAKE_CURRENT_LIST_DIR} in include() This solves a lots of warnings, e.g. in the FindModulesExecuteAll test. If the installed version on the system is rather old this may even lead to bugs, e.g. https://bugs.gentoo.org/show_bug.cgi?id=436540 --- Modules/FindPerlLibs.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/FindPerlLibs.cmake') diff --git a/Modules/FindPerlLibs.cmake b/Modules/FindPerlLibs.cmake index e9313adc9d..492f047706 100644 --- a/Modules/FindPerlLibs.cmake +++ b/Modules/FindPerlLibs.cmake @@ -38,7 +38,7 @@ # License text for the above reference.) # find the perl executable -include(FindPerl) +include(${CMAKE_CURRENT_LIST_DIR}/FindPerl.cmake) if (PERL_EXECUTABLE) ### PERL_PREFIX -- cgit v1.2.1