summaryrefslogtreecommitdiffstats
path: root/Modules/FindJPEG.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-12-20 20:56:51 (GMT)
committerBrad King <brad.king@kitware.com>2011-01-04 13:20:08 (GMT)
commitce28737c933a749cbc84c601f3ac9f56e4c832aa (patch)
tree44bf07879719b60d9c846bbd18d49f299e9c5cae /Modules/FindJPEG.cmake
parent7db8db5b7279a74aa4eab9cc1996a6a94131dc7e (diff)
downloadCMake-ce28737c933a749cbc84c601f3ac9f56e4c832aa.zip
CMake-ce28737c933a749cbc84c601f3ac9f56e4c832aa.tar.gz
CMake-ce28737c933a749cbc84c601f3ac9f56e4c832aa.tar.bz2
Remove usage of CMAKE_CURRENT_LIST_DIR now that we have CMP0017
This puts the new search behaviour for included files in action, i.e. now when a file from Modules/ include()s another file, it also gets the one from Modules/ included, i.e. the one it expects. Alex
Diffstat (limited to 'Modules/FindJPEG.cmake')
-rw-r--r--Modules/FindJPEG.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindJPEG.cmake b/Modules/FindJPEG.cmake
index 721f400..1f37483 100644
--- a/Modules/FindJPEG.cmake
+++ b/Modules/FindJPEG.cmake
@@ -27,7 +27,7 @@ FIND_LIBRARY(JPEG_LIBRARY NAMES ${JPEG_NAMES} )
# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if
# all listed variables are TRUE
-INCLUDE("${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake")
+INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JPEG DEFAULT_MSG JPEG_LIBRARY JPEG_INCLUDE_DIR)
IF(JPEG_FOUND)