From 3d47db0edcfa5cb5a6237c43efbe443221a32702 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 19 Sep 2024 15:10:21 -0400 Subject: [PATCH] fix(build): remove `check_required_components` for meson build Signed-off-by: Rui Chen --- CMakeLists.txt | 2 +- jsoncppConfig.cmake.meson.in | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6104c5ce5..048b6f78f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,8 +179,8 @@ if(JSONCPP_WITH_PKGCONFIG_SUPPORT) DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") endif() +include(CMakePackageConfigHelpers) if(JSONCPP_WITH_CMAKE_PACKAGE) - include(CMakePackageConfigHelpers) install(EXPORT jsoncpp DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/jsoncpp FILE jsoncpp-targets.cmake) diff --git a/jsoncppConfig.cmake.meson.in b/jsoncppConfig.cmake.meson.in index 0f4866d6d..be8852d0c 100644 --- a/jsoncppConfig.cmake.meson.in +++ b/jsoncppConfig.cmake.meson.in @@ -4,5 +4,3 @@ @MESON_STATIC_TARGET@ include ( "${CMAKE_CURRENT_LIST_DIR}/jsoncpp-namespaced-targets.cmake" ) - -check_required_components(JsonCpp)