mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 12:42:41 +00:00
Merge pull request #4 from jwm-art-net/master
fix for where simultaneous installs of lua 5.1 & 5.2 exist
This commit is contained in:
commit
2688875cbc
13
.gitignore
vendored
13
.gitignore
vendored
@ -6,3 +6,16 @@ doc/conky.1
|
||||
README
|
||||
build*
|
||||
doc/*.html
|
||||
|
||||
Makefile
|
||||
CMakeCache.txt
|
||||
CMakeFiles
|
||||
*.cmake
|
||||
data/convertconf.h
|
||||
data/defconfig.h
|
||||
lua/libcairo-orig.c
|
||||
lua/libcairo.c
|
||||
lua/libimlib2.c
|
||||
*.so
|
||||
*.a
|
||||
/config.h
|
||||
|
@ -233,7 +233,7 @@ if(BUILD_X11)
|
||||
endif(X11_FOUND)
|
||||
endif(BUILD_X11)
|
||||
|
||||
pkg_search_module(LUA REQUIRED lua>=5.1 lua-5.1>=5.1 lua5.1>=5.1)
|
||||
pkg_search_module(LUA REQUIRED lua5.1 lua-5.1 lua=5.1)
|
||||
set(conky_libs ${conky_libs} ${LUA_LIBRARIES})
|
||||
set(conky_includes ${conky_includes} ${LUA_INCLUDE_DIRS})
|
||||
if(BUILD_LUA_CAIRO)
|
||||
|
@ -34,20 +34,22 @@ if(BUILD_LUA_CAIRO)
|
||||
# if you have a better solution, please let me know
|
||||
wrap_tolua(luacairo_src cairo.pkg libcairo.patch)
|
||||
|
||||
add_library(cairo SHARED ${luacairo_src})
|
||||
add_library(conky-cairo SHARED ${luacairo_src})
|
||||
set_target_properties(conky-cairo PROPERTIES OUTPUT_NAME "cairo")
|
||||
|
||||
target_link_libraries(cairo ${luacairo_libs} ${TOLUA_LIBS})
|
||||
set(lua_libs ${lua_libs} cairo)
|
||||
target_link_libraries(conky-cairo ${luacairo_libs} ${TOLUA_LIBS})
|
||||
set(lua_libs ${lua_libs} conky-cairo)
|
||||
endif(BUILD_LUA_CAIRO)
|
||||
|
||||
if(BUILD_LUA_IMLIB2)
|
||||
include_directories(${luaimlib2_includes} ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
wrap_tolua(luaimlib2_src imlib2.pkg)
|
||||
|
||||
add_library(imlib2 SHARED ${luaimlib2_src})
|
||||
add_library(conky-imlib2 SHARED ${luaimlib2_src})
|
||||
set_target_properties(conky-imlib2 PROPERTIES OUTPUT_NAME "imlib2")
|
||||
|
||||
target_link_libraries(imlib2 ${luaimlib2_libs} ${TOLUA_LIBS})
|
||||
set(lua_libs ${lua_libs} imlib2)
|
||||
target_link_libraries(conky-imlib2 ${luaimlib2_libs} ${TOLUA_LIBS})
|
||||
set(lua_libs ${lua_libs} conky-imlib2)
|
||||
endif(BUILD_LUA_IMLIB2)
|
||||
|
||||
install(TARGETS
|
||||
|
Loading…
Reference in New Issue
Block a user