File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ option(MATPLOTPP_BUILD_HIGH_RESOLUTION_WORLD_MAP "Compile the high resolution ma
57
57
option (MATPLOTPP_BUILD_FOR_DOCUMENTATION_IMAGES "Bypass show() commands and save figures as .svg at destruction" OFF )
58
58
option (MATPLOTPP_BUILD_EXPERIMENTAL_OPENGL_BACKEND "Compile target with the experimental OpenGL backend" OFF )
59
59
option (MATPLOTPP_WITH_OPENCV "Use OpenCV in CImg" ON )
60
+ option (MATPLOT_TRACE_GNUPLOT_COMMANDS "Show gnuplot commands used for drawing" OFF )
60
61
61
62
# Where to find dependencies
62
63
option (MATPLOTPP_WITH_SYSTEM_CIMG "Use system-provided CImg.h instead of bundled" OFF )
Original file line number Diff line number Diff line change @@ -156,6 +156,14 @@ else ()
156
156
message ("Not including the high resolution maps for geoplots" )
157
157
endif ()
158
158
159
+ # Tracing gnuplot commands for debugging
160
+ if (MATPLOT_TRACE_GNUPLOT_COMMANDS)
161
+ if (MATPLOTPP_BUILD_FOR_DOCUMENTATION_IMAGES)
162
+ message (FATAL_ERROR "MATPLOT_TRACE_GNUPLOT_COMMANDS is not compatible with MATPLOTPP_BUILD_FOR_DOCUMENTATION_IMAGES" )
163
+ endif ()
164
+ target_compile_definitions (matplot PUBLIC MATPLOT_TRACE_GNUPLOT_COMMANDS)
165
+ endif ()
166
+
159
167
#######################################################
160
168
### Library options ###
161
169
#######################################################
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ namespace matplot::backend {
73
73
// http://www.gnuplot.info/files/gpReadMouseTest.c
74
74
static constexpr bool allow_using_mouse = true ;
75
75
76
- #if defined(TRACE_GNUPLOT_COMMANDS ) && \
76
+ #if defined(MATPLOT_TRACE_GNUPLOT_COMMANDS ) && \
77
77
!defined (MATPLOT_BUILD_FOR_DOCUMENTATION_IMAGES)
78
78
static constexpr bool trace_commands = true ;
79
79
#else
You can’t perform that action at this time.
0 commit comments