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

View File

@@ -15,7 +15,7 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
include(FindCygwin)
include(${CMAKE_CURRENT_LIST_DIR}/FindCygwin.cmake)
find_program(BASH
bash