Skip to content

Commit

Permalink
fix linker error due to stylized lib name
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptkeeper committed May 3, 2024
1 parent 7d723df commit 12b8dbe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 12b8dbe

Please sign in to comment.