mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
Apply patch from Marcus.Hufgard@hufgard.de to fix
findimlib svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=564066
This commit is contained in:
parent
25eb77c1de
commit
4c4743096a
|
@ -20,7 +20,7 @@ ELSE (DEFINED CACHED_IMLIB)
|
|||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
||||
INCLUDE(UsePkgConfig)
|
||||
|
||||
PKGCONFIG(libagg _IMLIBIncDir _IMLIBLinkDir _IMLIBLinkFlags _IMLIBCflags)
|
||||
PKGCONFIG(imlib _IMLIBIncDir _IMLIBLinkDir _IMLIBLinkFlags _IMLIBCflags)
|
||||
|
||||
set(IMLIB_DEFINITIONS ${_IMLIBCflags})
|
||||
|
||||
|
@ -30,7 +30,7 @@ ELSE (DEFINED CACHED_IMLIB)
|
|||
/usr/local/include
|
||||
)
|
||||
|
||||
FIND_LIBRARY(IMLIB_LIBRARIES NAMES Imlib
|
||||
FIND_LIBRARY(IMLIB_LIBRARIES NAMES Imlib libImlib
|
||||
PATHS
|
||||
${_IMLIBLinkDir}
|
||||
/usr/lib
|
||||
|
@ -38,7 +38,7 @@ ELSE (DEFINED CACHED_IMLIB)
|
|||
)
|
||||
|
||||
if (IMLIB_INCLUDE_DIR AND IMLIB_LIBRARIES)
|
||||
SET(imlib_found true)
|
||||
SET(IMLIB_FOUND true)
|
||||
endif (IMLIB_INCLUDE_DIR AND IMLIB_LIBRARIES)
|
||||
|
||||
if (IMLIB_FOUND)
|
||||
|
@ -48,6 +48,9 @@ ELSE (DEFINED CACHED_IMLIB)
|
|||
endif (NOT IMLIB_FIND_QUIETLY)
|
||||
else (IMLIB_FOUND)
|
||||
set(CACHED_IMLIB "NO")
|
||||
if (NOT IMLIB_FIND_QUIETLY)
|
||||
message(STATUS "didn't find IMLIB")
|
||||
endif (NOT IMLIB_FIND_QUIETLY)
|
||||
if (IMLIB_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could NOT find IMLIB")
|
||||
endif (IMLIB_FIND_REQUIRED)
|
||||
|
|
Loading…
Reference in a new issue