Skip to content

Commit

Permalink
[RFC] Allow for linking the PJ executable statically
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanct committed Dec 19, 2024
1 parent 7bc1df3 commit fc53960
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plotjuggler_app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
option(EXE_STATIC "Link the PlotJuggler binary statically" OFF)

set (CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down Expand Up @@ -119,7 +120,8 @@ target_link_libraries(plotjuggler
plotjuggler_base
plotjuggler_qwt
QCodeEditor
)
$<$<BOOL:${EXE_STATIC}>:-static-libgcc -static-libstdc++ -static>
)

if(COMPILING_WITH_CATKIN)

Expand Down

0 comments on commit fc53960

Please sign in to comment.