link against libnl-tiny
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 19:30:21 +0000 (20:30 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 19:36:36 +0000 (20:36 +0100)
CMakeLists.txt

index e307cd7a0e4e491199b8475ab5fc0f9451bc36fa..752a7bf9906545171013821d1adb572bed85fc48 100644 (file)
@@ -10,6 +10,10 @@ ENDIF("${CMAKE_SYSTEM}" MATCHES "Linux")
 
 ADD_LIBRARY(ubox SHARED ${SOURCES})
 
+IF("${CMAKE_SYSTEM}" MATCHES "Linux")
+  TARGET_LINK_LIBRARIES(ubox nl-tiny)
+ENDIF("${CMAKE_SYSTEM}" MATCHES "Linux")
+
 SET(CMAKE_INSTALL_PREFIX /usr)
 
 FILE(GLOB headers *.h)