projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
352572f
)
do not attempt to build lua if disabled
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 6 Apr 2011 23:13:57 +0000
(
01:13
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 6 Apr 2011 23:13:57 +0000
(
01:13
+0200)
lua/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/lua/CMakeLists.txt
b/lua/CMakeLists.txt
index b3e2ca7c3effe87a35797306fc321a969e9d8808..a532fc1e546a9b7bd3a03225420338297f7be9a1 100644
(file)
--- a/
lua/CMakeLists.txt
+++ b/
lua/CMakeLists.txt
@@
-19,18
+19,23
@@
IF(NOT LUAPATH)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
- IF(NOT ${LUA_CHECK_RES} EQUAL 0 OR ${LUAPATH} EQUAL "")
- MESSAGE(SEND_ERROR "Lua was not found on your system")
+ IF(BUILD_LUA)
+ IF(NOT ${LUA_CHECK_RES} EQUAL 0 OR ${LUAPATH} EQUAL "")
+ MESSAGE(SEND_ERROR "Lua was not found on your system")
+ ENDIF()
ENDIF()
ENDIF()
ENDIF()
ENDIF()
-ADD_LIBRARY(uci_lua MODULE uci.c)
-SET_TARGET_PROPERTIES(uci_lua PROPERTIES
- OUTPUT_NAME uci
- PREFIX ""
-)
-TARGET_LINK_LIBRARIES(uci_lua uci dl)
+IF(BUILD_LUA)
+ ADD_LIBRARY(uci_lua MODULE uci.c)
+ SET_TARGET_PROPERTIES(uci_lua PROPERTIES
+ OUTPUT_NAME uci
+ PREFIX ""
+ )
+ TARGET_LINK_LIBRARIES(uci_lua uci dl)
+
+ INSTALL(TARGETS uci_lua
+ LIBRARY DESTINATION ${LUAPATH}
+ )
+ENDIF()
-INSTALL(TARGETS uci_lua
- LIBRARY DESTINATION ${LUAPATH}
-)