From 8c17c8ce679078eced51af7a52521969d66eb6c7 Mon Sep 17 00:00:00 2001 From: Daniil Date: Sun, 28 Apr 2024 11:57:24 +0300 Subject: [PATCH] cmake: Fix broken static library build for c++ target --- lib/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index e218fa3..d87b8b4 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -62,7 +62,7 @@ if(BUILD_SHARED_LIBS) target_compile_definitions(${libname}++ PRIVATE LIBCONFIG_STATIC) else() target_compile_definitions(${libname} PUBLIC LIBCONFIG_STATIC) - target_compile_definitions(${libname}++ PUBLIC LIBCONFIGXX_STATIC) + target_compile_definitions(${libname}++ PUBLIC LIBCONFIG_STATIC LIBCONFIGXX_STATIC) endif() if(APPLE)