diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2012-11-03 20:35:44 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-11-04 04:55:37 (GMT) |
commit | 8ebf74b02fe936888f7b3af59dd983405bef9cf7 (patch) | |
tree | 2d71d53fd131166b94cc36ceafbf2ce13ff32aca /Modules/FindGIF.cmake | |
parent | d39bd3e6a8dc89637197c305102724c337b7fb0f (diff) | |
download | CMake-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/FindGIF.cmake')
-rw-r--r-- | Modules/FindGIF.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindGIF.cmake b/Modules/FindGIF.cmake index 6a665ad..90ff737 100644 --- a/Modules/FindGIF.cmake +++ b/Modules/FindGIF.cmake @@ -58,8 +58,8 @@ set(GIF_LIBRARIES ${GIF_LIBRARY}) # one. # http://giflib.sourcearchive.com/documentation/4.1.4/files.html if(GIF_INCLUDE_DIR) - include(CMakePushCheckState) - include(CheckStructHasMember) + include(${CMAKE_CURRENT_LIST_DIR}/CMakePushCheckState.cmake) + include(${CMAKE_CURRENT_LIST_DIR}/CheckStructHasMember.cmake) CMAKE_PUSH_CHECK_STATE() set(GIF_VERSION 3) set(CMAKE_REQUIRED_INCLUDES "${GIF_INCLUDE_DIR}") |