link against libnl-tiny
[project/libubox.git] / CMakeLists.txt
index e307cd7..752a7bf 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)