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/FindosgShadow.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/FindosgShadow.cmake') diff --git a/Modules/FindosgShadow.cmake b/Modules/FindosgShadow.cmake index ca87b56111..f3be0bfdfd 100644 --- a/Modules/FindosgShadow.cmake +++ b/Modules/FindosgShadow.cmake @@ -42,7 +42,7 @@ # #include # #include -include(Findosg_functions) +include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake) OSG_FIND_PATH (OSGSHADOW osgShadow/ShadowTexture) OSG_FIND_LIBRARY(OSGSHADOW osgShadow) -- cgit v1.2.1