mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 14:19:07 +08:00
c9fa965c2a
* [new port] ZLMediaKit * format manifest * version * fix patch * version * fix cmake warnings, no idea why it happened * version * try to fix build * ver * fix build * ver * Add new feature mp4, set openssl as default feature * version * Add supports field * version * Add new feature sctp and webrtc * version * Add dependency libsrtp to feature webrtc * format * version * Add new feature mysql * version * remove feature x264 * version * remove feature mysql, correct dependency relationship * version * disable ENABLE_PLAYER * ver * update version date * version --------- Co-authored-by: jyu49 <yu_jack@apple.com>
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
diff --git a/3rdpart/CMakeLists.txt b/3rdpart/CMakeLists.txt
|
|
index c90129d..06bde42 100644
|
|
--- a/3rdpart/CMakeLists.txt
|
|
+++ b/3rdpart/CMakeLists.txt
|
|
@@ -24,6 +24,7 @@
|
|
##############################################################################
|
|
|
|
# jsoncpp
|
|
+if (0)
|
|
file(GLOB JSONCPP_SRC_LIST
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp/include/json/*.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp/src/lib_json/*.cpp
|
|
@@ -38,7 +39,8 @@ target_include_directories(jsoncpp
|
|
PUBLIC
|
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/jsoncpp/include")
|
|
|
|
-update_cached_list(MK_LINK_LIBRARIES jsoncpp)
|
|
+endif()
|
|
+update_cached_list(MK_LINK_LIBRARIES JsonCpp::JsonCpp)
|
|
|
|
##############################################################################
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index cb85679..c9390bb 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -434,6 +434,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
# for assert.h
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/3rdpart)
|
|
|
|
+find_package(jsoncpp CONFIG REQUIRED)
|
|
add_subdirectory(3rdpart)
|
|
|
|
add_subdirectory(src)
|