jshn: only keep UP_* variables around while they are needed
[project/libubox.git] / CMakeLists.txt
index 681f8b155c91a0772e501741bd26e91e8cbb87c1..f24fee9b6d67eae0a043cb1eb25d43d1f3e2c5ab 100644 (file)
@@ -51,7 +51,7 @@ IF(EXISTS ${json})
        TARGET_LINK_LIBRARIES(blobmsg_json ubox ${json})
 
        ADD_EXECUTABLE(jshn jshn.c)
-       TARGET_LINK_LIBRARIES(jshn ${json})
+       TARGET_LINK_LIBRARIES(jshn blobmsg_json ${json})
 
        ADD_LIBRARY(json_script SHARED json_script.c)
        TARGET_LINK_LIBRARIES(json_script ubox)