mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-27 17:18:33 +00:00
Add a CMAKE variable for the patch program
This commit is contained in:
parent
c80deb2d69
commit
cccbf3b4c0
@ -216,6 +216,10 @@ if(BUILD_LUA)
|
|||||||
pkg_check_modules(CAIRO REQUIRED cairo cairo-xlib)
|
pkg_check_modules(CAIRO REQUIRED cairo cairo-xlib)
|
||||||
set(luacairo_libs ${CAIRO_LIBRARIES} ${LUA_LIBRARIES})
|
set(luacairo_libs ${CAIRO_LIBRARIES} ${LUA_LIBRARIES})
|
||||||
set(luacairo_includes ${CAIRO_INCLUDE_DIRS} ${LUA_INCLUDE_DIRS})
|
set(luacairo_includes ${CAIRO_INCLUDE_DIRS} ${LUA_INCLUDE_DIRS})
|
||||||
|
find_program(APP_PATCH patch)
|
||||||
|
if(NOT APP_PATCH)
|
||||||
|
message(FATAL_ERROR "Unable to find program 'patch'")
|
||||||
|
endif(NOT APP_PATCH)
|
||||||
endif(BUILD_LUA_CAIRO)
|
endif(BUILD_LUA_CAIRO)
|
||||||
if(BUILD_LUA_IMLIB2)
|
if(BUILD_LUA_IMLIB2)
|
||||||
set(WANT_TOLUA true)
|
set(WANT_TOLUA true)
|
||||||
|
@ -32,7 +32,7 @@ if(DEFINED ARGV2)
|
|||||||
GET_FILENAME_COMPONENT(PATCH ${ARGV2} ABSOLUTE)
|
GET_FILENAME_COMPONENT(PATCH ${ARGV2} ABSOLUTE)
|
||||||
SET(TOLUA_OUT ${CMAKE_CURRENT_BINARY_DIR}/lib${FIL_WE}-orig.c)
|
SET(TOLUA_OUT ${CMAKE_CURRENT_BINARY_DIR}/lib${FIL_WE}-orig.c)
|
||||||
ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib${FIL_WE}.c
|
ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lib${FIL_WE}.c
|
||||||
COMMAND patch -s ${TOLUA_OUT} ${PATCH} -o ${CMAKE_CURRENT_BINARY_DIR}/lib${FIL_WE}.c
|
COMMAND ${APP_PATCH} -s ${TOLUA_OUT} ${PATCH} -o ${CMAKE_CURRENT_BINARY_DIR}/lib${FIL_WE}.c
|
||||||
DEPENDS ${TOLUA_OUT} ${PATCH}
|
DEPENDS ${TOLUA_OUT} ${PATCH}
|
||||||
COMMENT "Patching lib${FIL_WE}-orig.c"
|
COMMENT "Patching lib${FIL_WE}-orig.c"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user