fix lua plugin linker error
authorFelix Fietkau <nbd@openwrt.org>
Sun, 27 Mar 2011 00:47:23 +0000 (01:47 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 27 Mar 2011 00:47:23 +0000 (01:47 +0100)
lua/CMakeLists.txt

index fe960617caeacb4e1d671c274a188a12e52ae1e9..b3e2ca7c3effe87a35797306fc321a969e9d8808 100644 (file)
@@ -5,6 +5,7 @@ PROJECT(uci C)
 SET(CMAKE_INSTALL_PREFIX /)
 
 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I..)
+LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
 
 IF(APPLE)
        SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup")