From 12b8dbe20c3682c52ca2abee30e96a509978d191 Mon Sep 17 00:00:00 2001 From: Nick Krecklow Date: Fri, 3 May 2024 08:57:00 -0500 Subject: [PATCH] fix linker error due to stylized lib name --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1d99e7..d0e8447 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,9 +16,8 @@ file(GLOB SOURCES "src/*.c") file(GLOB HEADERS "include/*.h") add_executable(fsautoproc ${SOURCES} ${HEADERS}) -target_link_directories(fsautoproc PRIVATE ${CJSON_LIBRARY_DIRS}) -target_link_libraries(fsautoproc PRIVATE logc ${CJSON_LIBRARIES} pthread) - +target_link_directories(fsautoproc PRIVATE dep) +target_link_libraries(fsautoproc PRIVATE logc cjson pthread) target_include_directories(fsautoproc PRIVATE "include" "dep") install(TARGETS fsautoproc DESTINATION bin)