From c89810cc5c08196d430d4613ea8456b61f0769e9 Mon Sep 17 00:00:00 2001 From: Marat S Date: Sat, 22 Feb 2025 00:05:31 +0000 Subject: [PATCH] do not export cmake project in case of static tonlibjson --- tonlib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonlib/CMakeLists.txt b/tonlib/CMakeLists.txt index 2b06d2ba..3dbd628d 100644 --- a/tonlib/CMakeLists.txt +++ b/tonlib/CMakeLists.txt @@ -159,7 +159,7 @@ endif() install(FILES ${TONLIB_JSON_HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/tonlib/tonlibjson_export.h DESTINATION include/tonlib/) -if (NOT USE_EMSCRIPTEN) +if (NOT USE_EMSCRIPTEN AND NOT TONLIBJSON_STATIC) install(EXPORT Tonlib FILE TonlibTargets.cmake NAMESPACE Tonlib::