Skip to content

Commit 0051a4f

Browse files
committed
loader: Allow building with system jsoncpp.
1 parent 2083441 commit 0051a4f

3 files changed

Lines changed: 409 additions & 6 deletions

File tree

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ endif()
3838
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/conformance" AND NOT CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
3939
option(BUILD_CONFORMANCE_TESTS "Build conformance tests" ON)
4040
endif()
41+
include(CMakeDependentOption)
42+
43+
find_package(JsonCpp)
44+
cmake_dependent_option(BUILD_WITH_SYSTEM_JSONCPP "Use system jsoncpp instead of vendored source" ON
45+
"JSONCPP_FOUND" OFF)
4146

4247

4348
# Several files use these compile-time OS switches

0 commit comments

Comments
 (0)