File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ option(MATPLOTPP_BUILD_WITH_EXCEPTIONS "Add compiler flags to use exceptions." O
56
56
option (MATPLOTPP_BUILD_HIGH_RESOLUTION_WORLD_MAP "Compile the high resolution maps for geoplots" ON )
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
+ option (MATPLOTPP_WITH_OPENCV "Use OpenCV in CImg" ON )
59
60
60
61
# Where to find dependencies
61
62
option (MATPLOTPP_WITH_SYSTEM_CIMG "Use system-provided CImg.h instead of bundled" OFF )
Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ endif()
117
117
if (CMAKE_MODULE_PATH )
118
118
find_package (OpenCV QUIET )
119
119
if (OpenCV_FOUND)
120
- target_compile_definitions (cimg INTERFACE cimg_use_opencv)
120
+ if (MATPLOTPP_WITH_OPENCV)
121
+ target_compile_definitions (cimg INTERFACE cimg_use_opencv)
122
+ endif ()
121
123
target_link_libraries (cimg INTERFACE ${OpenCV_LIBRARIES} )
122
124
target_include_directories (cimg INTERFACE ${OpenCV_INCLUDE_DIRS} )
123
125
endif ()
You can’t perform that action at this time.
0 commit comments