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
This commit is contained in:
Rolf Eike Beer
2012-11-03 21:35:44 +01:00
parent d39bd3e6a8
commit 8ebf74b02f
53 changed files with 65 additions and 65 deletions
+1 -1
View File
@@ -72,7 +72,7 @@
# Output variables of the form OPENSCENEGRAPH_FOO
#
include(Findosg_functions)
include(${CMAKE_CURRENT_LIST_DIR}/Findosg_functions.cmake)
set(_osg_modules_to_process)
foreach(_osg_component ${OpenSceneGraph_FIND_COMPONENTS})