Open matta828 opened 1 year ago
I fixed it with the following change...
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 33c5f02..afe1fb4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,7 +11,7 @@ pkg_check_modules(LIBACARS libacars-2>=2.0.0)
if(LIBACARS_FOUND)
message ( STATUS "Using libacars")
add_definitions(-DHAVE_LIBACARS )
-target_link_libraries(acarsdec ${LIBACARS_LIBRARIES})
+target_link_libraries(acarsdec ${LIBACARS_LINK_LIBRARIES})
target_include_directories(acarsdec PUBLIC ${LIBACARS_INCLUDE_DIRS})
link_directories(${LIBACARS_LIBRARY_DIRS})
else()
Hi, I have been trying to compile acarsdec on my Mac and I can get past cmake successfully but I encounter the error
when using the make command. From here I am stuck and have no idea how to proceed. According to cmake it actually found libacars no problem, here is the log:
Hopefully someone can help me out with this.
Thanks.