summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2012-03-20 15:18:33 +0100
committerPino Toscano <pino@kde.org>2012-03-20 15:18:33 +0100
commitf69f41056fc8cd8a70b38024f255e9074af20bdc (patch)
tree920543936f374179700545a50c1bb4c28acceeea /cmake
parent4a9238441a5317c3304296e4e6430cccefe8322c (diff)
cmake: reset CMAKE_REQUIRED_INCLUDES/CMAKE_REQUIRED_LIBRARIES
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindLIBOPENJPEG.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/FindLIBOPENJPEG.cmake b/cmake/modules/FindLIBOPENJPEG.cmake
index ab1721d9..d9c13696 100644
--- a/cmake/modules/FindLIBOPENJPEG.cmake
+++ b/cmake/modules/FindLIBOPENJPEG.cmake
@@ -39,6 +39,9 @@ int main()
}
" WITH_OPENJPEG_IGNORE_PCLR_CMAP_CDEF_FLAG)
+ set(CMAKE_REQUIRED_INCLUDES)
+ set(CMAKE_REQUIRED_LIBRARIES)
+
set(LIBOPENJPEG_FOUND TRUE)
endif(LIBOPENJPEG_INCLUDE_DIR AND LIBOPENJPEG_LIBRARIES)