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) diff --git a/plotjuggler_plugins/ParserROS/rosx_introspection/3rdparty/Fast-CDR/src/cpp/CMakeLists.txt b/plotjuggler_plugins/ParserROS/rosx_introspection/3rdparty/Fast-CDR/src/cpp/CMakeLists.txt index 7ac643b6f..6ec6a4919 100644 --- a/plotjuggler_plugins/ParserROS/rosx_introspection/3rdparty/Fast-CDR/src/cpp/CMakeLists.txt +++ b/plotjuggler_plugins/ParserROS/rosx_introspection/3rdparty/Fast-CDR/src/cpp/CMakeLists.txt @@ -32,7 +32,7 @@ set(${PROJECT_NAME}_source_files exceptions/Exception.cpp exceptions/LockedExternalAccessException.cpp exceptions/NotEnoughMemoryException.cpp - FastCdr.rc + $<$,SHARED_LIBRARY>:FastCdr.rc> ) configure_file(${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME}/config.h.in