cmake : fix json INTERFACE library (#2069)

This commit is contained in:
Xingchen Song(宋星辰) 2024-05-13 19:29:39 +08:00 committed by GitHub
parent 7705dc52da
commit b6bbce4ae9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,8 +58,8 @@ if (WHISPER_SDL2)
endif()
# add json lib
add_library(json_cpp INTERFACE json.hpp)
set_target_properties(json_cpp PROPERTIES FOLDER "libs")
add_library(json_cpp INTERFACE)
target_include_directories(json_cpp INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
# examples