From 04cb4996e22c1d95c1c839b6fb54d49272d5bbc0 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Mon, 12 Apr 2021 00:25:51 +0100 Subject: Update the minimodules --- CMake/AddDependencies.cmake | 9 ++++++--- CMake/GroupSources.cmake | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'CMake') diff --git a/CMake/AddDependencies.cmake b/CMake/AddDependencies.cmake index a7539c593..e9f24db09 100644 --- a/CMake/AddDependencies.cmake +++ b/CMake/AddDependencies.cmake @@ -20,6 +20,9 @@ function(build_dependencies) set(JSONCPP_WITH_TESTS OFF CACHE BOOL "Compile and (for jsoncpp_check) run JsonCpp test executables") set(JSONCPP_WITH_POST_BUILD_UNITTEST OFF CACHE BOOL "Automatically run unit-tests as a post build step") set(JSONCPP_WITH_PKGCONFIG_SUPPORT OFF CACHE BOOL "Generate and install .pc files") + set(JSONCPP_WITH_CMAKE_PACKAGE OFF CACHE BOOL "Generate and install cmake package files") + set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build jsoncpp_lib as a shared library.") + set(BUILD_OBJECT_LIBS OFF CACHE BOOL "Build jsoncpp_lib as a object library.") # Set options for mbedtls: set(ENABLE_PROGRAMS OFF CACHE BOOL "Build mbed TLS programs.") @@ -60,7 +63,7 @@ function(link_dependencies TARGET) event_core event_extra fmt::fmt - jsoncpp_lib + jsoncpp_static libdeflate lsqlite lualib @@ -80,6 +83,6 @@ function(link_dependencies TARGET) target_link_libraries(${TARGET} PRIVATE event_pthreads) endif() - # Prettify jsoncpp_lib name in VS solution explorer: - set_property(TARGET jsoncpp_lib PROPERTY PROJECT_LABEL "jsoncpp") + # Prettify jsoncpp_static name in VS solution explorer: + set_property(TARGET jsoncpp_static PROPERTY PROJECT_LABEL "jsoncpp") endfunction() diff --git a/CMake/GroupSources.cmake b/CMake/GroupSources.cmake index 59bd8c5c0..875c4673e 100644 --- a/CMake/GroupSources.cmake +++ b/CMake/GroupSources.cmake @@ -8,7 +8,7 @@ function(group_sources) event_extra_static expat fmt - jsoncpp_lib + jsoncpp_static libdeflate lualib luaexpat -- cgit v1.2.3