diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-12 01:25:51 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-12 15:09:18 +0200 |
commit | 04cb4996e22c1d95c1c839b6fb54d49272d5bbc0 (patch) | |
tree | 32a06345887b027e358c14fd56f346857282ef39 /CMake/AddDependencies.cmake | |
parent | fixed build (#5181) (diff) | |
download | cuberite-04cb4996e22c1d95c1c839b6fb54d49272d5bbc0.tar cuberite-04cb4996e22c1d95c1c839b6fb54d49272d5bbc0.tar.gz cuberite-04cb4996e22c1d95c1c839b6fb54d49272d5bbc0.tar.bz2 cuberite-04cb4996e22c1d95c1c839b6fb54d49272d5bbc0.tar.lz cuberite-04cb4996e22c1d95c1c839b6fb54d49272d5bbc0.tar.xz cuberite-04cb4996e22c1d95c1c839b6fb54d49272d5bbc0.tar.zst cuberite-04cb4996e22c1d95c1c839b6fb54d49272d5bbc0.zip |
Diffstat (limited to '')
-rw-r--r-- | CMake/AddDependencies.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
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() |