From 2315830376e6c4cbfedb51649faf72279e06f21c Mon Sep 17 00:00:00 2001
From: Amna <amna.snene@savoirfairelinux.com>
Date: Mon, 4 Dec 2023 14:08:19 -0500
Subject: [PATCH] cmake: fix pkg-config in static mode

Change-Id: Ic2397eee6ea67fc5d0b76ce77bbd8e000f90177c
---
 CMakeLists.txt | 2 +-
 Dockerfile     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bddd5b6..a2272fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,7 +37,7 @@ if (NOT MSVC)
     set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)
     list(APPEND CMAKE_PREFIX_PATH ${DEPENDENCIES_PATH})
     find_package (PkgConfig REQUIRED)
-    if(BUILD_STATIC)
+    if(NOT BUILD_SHARED_LIBS)
         list(APPEND PKG_CONFIG_EXECUTABLE "--static")
     endif()
 
diff --git a/Dockerfile b/Dockerfile
index 10b4cd7..e55cd95 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,7 +6,7 @@ RUN apk add --no-cache \
         cppunit-dev gnutls-dev jsoncpp-dev \
         argon2-dev openssl-dev fmt-dev \
         http-parser-dev asio-dev msgpack-cxx-dev \
-        readline-dev
+        readline-dev yaml-cpp-dev libunistring-dev
 
 # Build restinio
 RUN mkdir restinio && cd restinio \
-- 
GitLab