From 4a5d3650a7373e57446a663f463c9aa60c72db11 Mon Sep 17 00:00:00 2001 From: Simon Hoinkis Date: Wed, 8 Jun 2022 11:00:09 +0200 Subject: [PATCH] Link iceoryx libaries statically Signed-off-by: Simon Hoinkis --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ede32c4..0f7c5ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,9 @@ cmake_minimum_required(VERSION 3.16) find_package(iceoryx_hoofs QUIET) find_package(iceoryx_posh QUIET) +# Link iceoryx_hoofs and iceoryx_posh libraries statically +option(BUILD_SHARED_LIBS "Link libraries dynamically" OFF) + # fetch iceoryx if not found if(NOT iceoryx_hoofs_FOUND OR NOT iceoryx_posh_FOUND) if(iceoryx_hoofs_FOUND)