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/FindosgManipulator.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/FindosgManipulator.cmake') diff --git a/Modules/FindosgManipulator.cmake b/Modules/FindosgManipulator.cmake index 9e5857083a..32d6def7bc 100644 --- a/Modules/FindosgManipulator.cmake +++ b/Modules/FindosgManipulator.cmake @@ -42,7 +42,7 @@ # #include # #include -include(Findosg_functions) +include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake) OSG_FIND_PATH (OSGMANIPULATOR osgManipulator/TrackballDragger) OSG_FIND_LIBRARY(OSGMANIPULATOR osgManipulator) -- cgit v1.2.1