summaryrefslogtreecommitdiffstats
path: root/Modules/FindBZip2.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-11-03 20:35:44 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-11-04 04:55:37 (GMT)
commit8ebf74b02fe936888f7b3af59dd983405bef9cf7 (patch)
tree2d71d53fd131166b94cc36ceafbf2ce13ff32aca /Modules/FindBZip2.cmake
parentd39bd3e6a8dc89637197c305102724c337b7fb0f (diff)
downloadCMake-8ebf74b02fe936888f7b3af59dd983405bef9cf7.zip
CMake-8ebf74b02fe936888f7b3af59dd983405bef9cf7.tar.gz
CMake-8ebf74b02fe936888f7b3af59dd983405bef9cf7.tar.bz2
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
Diffstat (limited to 'Modules/FindBZip2.cmake')
-rw-r--r--Modules/FindBZip2.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBZip2.cmake b/Modules/FindBZip2.cmake
index 8b9d235..9fb29d0 100644
--- a/Modules/FindBZip2.cmake
+++ b/Modules/FindBZip2.cmake
@@ -49,7 +49,7 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(BZip2
VERSION_VAR BZIP2_VERSION_STRING)
if (BZIP2_FOUND)
- include(CheckLibraryExists)
+ include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake)
CHECK_LIBRARY_EXISTS("${BZIP2_LIBRARIES}" BZ2_bzCompressInit "" BZIP2_NEED_PREFIX)
endif ()