From 5aab7513cfdcb37306516b1e424c7a87d287919e Mon Sep 17 00:00:00 2001 From: Alex Lian Date: Sun, 27 Jan 2013 23:08:22 -0500 Subject: [PATCH] Fix all utils compilation on windows. - As nfc-utils now references str_nfc_target from the lib itself, so the static lib was not properly referencing the libnfc itself, so the final utility link would fail. - Simply added the libnfc as a target for the static nfcutils library internal to cmake --- utils/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 491fdfc..ae622ff 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -11,6 +11,7 @@ SET(UTILS-SOURCES ADD_LIBRARY(nfcutils STATIC nfc-utils.c ) +TARGET_LINK_LIBRARIES(nfcutils nfc) # Examples FOREACH(source ${UTILS-SOURCES})