Fix jansson not building

This commit is contained in:
KatieFrogs 2021-10-25 11:03:15 +03:00
parent 493c12916c
commit 21af22ac2b
2 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,7 @@ endif()
target_link_libraries(vgmstream_cli libvgmstream)
# Link to Jansson, if we have it
if (USE_JANSSON AND JANSSON_FOUND)
if (USE_JANSSON)
target_compile_definitions(vgmstream_cli PRIVATE HAVE_JSON)
target_include_directories(vgmstream_cli PRIVATE ${JANSSON_INCLUDE_DIRS})
target_link_libraries(vgmstream_cli jansson)

View File

@ -6,7 +6,6 @@ if(NOT WIN32 AND USE_JANSSON)
if(JANSSON_FOUND)
set(JANSSON_SOURCE "(system)")
set(JANSSON_PKG libjansson)
link_directories(${JANSSON_LIBRARY_DIRS})
endif()
endif()