From fc53960ca4529c7111b7dc9f26ae955bca7e1dc8 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Thu, 19 Dec 2024 12:44:11 +0100 Subject: [PATCH] [RFC] Allow for linking the PJ executable statically --- plotjuggler_app/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plotjuggler_app/CMakeLists.txt b/plotjuggler_app/CMakeLists.txt index cd4ac32f1..45410e099 100644 --- a/plotjuggler_app/CMakeLists.txt +++ b/plotjuggler_app/CMakeLists.txt @@ -1,3 +1,4 @@ +option(EXE_STATIC "Link the PlotJuggler binary statically" OFF) set (CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -119,7 +120,8 @@ target_link_libraries(plotjuggler plotjuggler_base plotjuggler_qwt QCodeEditor - ) + $<$:-static-libgcc -static-libstdc++ -static> +) if(COMPILING_WITH_CATKIN)