cmake: it's Imlib2 not Imlib
This commit is contained in:
parent
c656591bef
commit
69c2e771dc
|
@ -11,7 +11,7 @@ SET(CMAKE_BUILD_TYPE RELEASE)
|
||||||
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
|
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
|
||||||
|
|
||||||
OPTION(WITH_DBUS "build with D-BUS" ON)
|
OPTION(WITH_DBUS "build with D-BUS" ON)
|
||||||
OPTION(WITH_IMLIB "build with Imlib" ON)
|
OPTION(WITH_IMLIB2 "build with Imlib2" ON)
|
||||||
|
|
||||||
ADD_DEFINITIONS(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra
|
ADD_DEFINITIONS(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra
|
||||||
-Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings
|
-Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings
|
||||||
|
@ -76,15 +76,15 @@ IF(WITH_DBUS)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(WITH_IMLIB)
|
IF(WITH_IMLIB2)
|
||||||
pkg_check_modules(IMLIB imlib2)
|
pkg_check_modules(IMLIB2 imlib2)
|
||||||
IF(IMLIB_FOUND)
|
IF(IMLIB2_FOUND)
|
||||||
ADD_DEFINITIONS(-DWITH_IMLIB)
|
ADD_DEFINITIONS(-DWITH_IMLIB2)
|
||||||
SET(AWE_MOD_LIBRARIES ${AWE_MOD_LIBRARIES} ${IMLIB_LIBRARIES})
|
SET(AWE_MOD_LIBRARIES ${AWE_MOD_LIBRARIES} ${IMLIB2_LIBRARIES})
|
||||||
SET(AWE_MOD_INCLUDE_DIRS ${AWE_MOD_INCLUDE_DIRS} ${IMLIB_INCLUDE_DIRS})
|
SET(AWE_MOD_INCLUDE_DIRS ${AWE_MOD_INCLUDE_DIRS} ${IMLIB2_INCLUDE_DIRS})
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(WITH_IMLIB OFF)
|
SET(WITH_IMLIB2 OFF)
|
||||||
MESSAGE(STATUS "Imlib not found. Disabled.")
|
MESSAGE(STATUS "Imlib2 not found. Disabled.")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue